From 71813b9987dd50c77be0ca6e14748fbbfea24bc4 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 28 Nov 2021 20:16:27 +0100 Subject: [PATCH] Update and rename paperless_ng/rootfs/runtmp to paperless_ng/rootfs/etc/cont-init.d/90-config_yaml --- .../{runtmp => etc/cont-init.d/90-config_yaml} | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) rename paperless_ng/rootfs/{runtmp => etc/cont-init.d/90-config_yaml} (93%) diff --git a/paperless_ng/rootfs/runtmp b/paperless_ng/rootfs/etc/cont-init.d/90-config_yaml similarity index 93% rename from paperless_ng/rootfs/runtmp rename to paperless_ng/rootfs/etc/cont-init.d/90-config_yaml index 4b2437ee6..778de6816 100644 --- a/paperless_ng/rootfs/runtmp +++ b/paperless_ng/rootfs/etc/cont-init.d/90-config_yaml @@ -1,8 +1,5 @@ #!/usr/bin/env bashio -set +u -set +e - ################## # INITIALIZATION # ################## @@ -66,17 +63,10 @@ for word in $(parse_yaml "$CONFIGSOURCE" ""); do word=${word//[\"\']/} # Data validation if [[ $word =~ ^.+[=].+$ ]]; then - export $word # Export the variable + sed -i "1a export $word" /etc/services.d/*/run # Export the variable bashio::log.blue "$word" else bashio::log.fatal "$word does not follow the structure KEY=text, it will be ignored and removed from the config" sed -i "/$word/ d" ${CONFIGSOURCE} fi done - -############## -# Launch App # -############## -echo " " -bashio::log.info "Starting the app" -echo " "