From 8c0d9965ace34a857627e74e1be96d8d06550ae7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 29 Dec 2024 06:17:32 +0100 Subject: [PATCH] Update 99-run.sh --- grampsweb/rootfs/etc/cont-init.d/99-run.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/grampsweb/rootfs/etc/cont-init.d/99-run.sh b/grampsweb/rootfs/etc/cont-init.d/99-run.sh index e7bd057b2..4c6df9c94 100755 --- a/grampsweb/rootfs/etc/cont-init.d/99-run.sh +++ b/grampsweb/rootfs/etc/cont-init.d/99-run.sh @@ -35,8 +35,7 @@ fi # Check if the secret key is defined in addon options if bashio::config.has_value "GRAMPSWEB_SECRET_KEY"; then bashio::log.warning "Using the secret key defined in the addon options." - export SECRET_KEY="$(bashio::config "GRAMPSWEB_SECRET_KEY")" - export GRAMPSWEB_SECRET_KEY="$SECRET_KEY" + export GRAMPSWEB_SECRET_KEY="$(bashio::config "GRAMPSWEB_SECRET_KEY")" else # Check if the secret file exists; if not, create a new one if [ ! -s /config/secret/secret ]; then @@ -47,9 +46,8 @@ else fi bashio::log.warning "Using existing secret key from /config/secret/secret." bashio::log.warning "Secret key saved to addon options." - export SECRET_KEY="$(cat /config/secret/secret)" - bashio::addon.option "GRAMPSWEB_SECRET_KEY" "$SECRET_KEY" - export GRAMPSWEB_SECRET_KEY="$SECRET_KEY" + export GRAMPSWEB_SECRET_KEY="$(cat /config/secret/secret)" + bashio::addon.option "GRAMPSWEB_SECRET_KEY" "$GRAMPSWEB_SECRET_KEY" fi ################## @@ -78,7 +76,7 @@ CELERY_PID=$! # Staring nginx # ################# echo "Starting nginx..." -exec nginx & bashio::log.info "Starting nginx" +#exec nginx & bashio::log.info "Starting nginx" NGINX_PID=$! # Wait for all background processes