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:
@@ -32,8 +32,9 @@ fi
|
||||
sed -i "$LINE d" $NGINXFILE
|
||||
|
||||
LINE=$(sed -n '/ssl_certificate/=' $NGINXFILE)
|
||||
[ ! -z $LINE ] && sed -i "$LINE a ssl_certificate /ssl/${CERTFILE};" $NGINXFILE && \
|
||||
sed -i "$LINE d" $NGINXFILE && echo "$NGINXFILE modified"
|
||||
[ ! -z $LINE ] && \
|
||||
sed -i "$LINE a ssl_certificate_key /ssl/$CERTFILE;" $NGINXFILE && \
|
||||
sed -i "$LINE d" $NGINXFILE
|
||||
fi
|
||||
done
|
||||
bashio::log.info "... done"
|
||||
|
||||
Reference in New Issue
Block a user