mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-02 07:10:53 +02:00
Update 30-ssl.sh
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
if bashio::config.true 'use_own_certs'; then
|
if bashio::config.true 'use_own_certs'; then
|
||||||
|
|
||||||
bashio::log.info "... using referenced ssl certificates"
|
bashio::log.info "Using referenced ssl certificates"
|
||||||
CERTFILE=$(bashio::config 'certfile')
|
CERTFILE=$(bashio::config 'certfile')
|
||||||
KEYFILE=$(bashio::config 'keyfile')
|
KEYFILE=$(bashio::config 'keyfile')
|
||||||
|
|
||||||
@@ -16,5 +16,6 @@ if bashio::config.true 'use_own_certs'; then
|
|||||||
[[ -f /data/config/keys/cert.crt ]] && rm /data/config/keys/cert.crt
|
[[ -f /data/config/keys/cert.crt ]] && rm /data/config/keys/cert.crt
|
||||||
cp /ssl/"$CERTFILE" /data/config/keys/cert.crt
|
cp /ssl/"$CERTFILE" /data/config/keys/cert.crt
|
||||||
cp /ssl/"$KEYFILE" /data/config/keys/cert.key
|
cp /ssl/"$KEYFILE" /data/config/keys/cert.key
|
||||||
|
echo "... done"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user