mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 30-keygen
This commit is contained in:
@@ -25,13 +25,13 @@ fi
|
||||
#Sets certificates
|
||||
for NGINXFILE in "/defaults/default" "/config/nginx/site-confs/default" "/data/config/nginx/site-confs/default"; do
|
||||
if [ -f $NGINXFILE ]; then
|
||||
LINE=$(sed -n "/ssl_certificate_key/=" $NGINXFILE)
|
||||
LINE=$(sed -n "/ssl_certificate_key /=" $NGINXFILE)
|
||||
|
||||
[ ! -z $LINE ] && \
|
||||
sed -i "$LINE a ssl_certificate_key /ssl/$KEYFILE;" $NGINXFILE && \
|
||||
sed -i "$LINE d" $NGINXFILE
|
||||
|
||||
LINE=$(sed -n '/ssl_certificate/=' $NGINXFILE)
|
||||
LINE=$(sed -n '/ssl_certificate /=' $NGINXFILE)
|
||||
[ ! -z $LINE ] && \
|
||||
sed -i "$LINE a ssl_certificate_key /ssl/$CERTFILE;" $NGINXFILE && \
|
||||
sed -i "$LINE d" $NGINXFILE
|
||||
|
||||
Reference in New Issue
Block a user