From 12bfd2a4dc30b879be4281fd5d126a2818d16983 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Mon, 29 Nov 2021 10:13:13 +0100 Subject: [PATCH] revert --- paperless_ng/rootfs/etc/cont-init.d/90-config_yaml.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paperless_ng/rootfs/etc/cont-init.d/90-config_yaml.sh b/paperless_ng/rootfs/etc/cont-init.d/90-config_yaml.sh index 2d0c840ea..c2be48bde 100644 --- a/paperless_ng/rootfs/etc/cont-init.d/90-config_yaml.sh +++ b/paperless_ng/rootfs/etc/cont-init.d/90-config_yaml.sh @@ -67,9 +67,8 @@ for word in $(parse_yaml "$CONFIGSOURCE" ""); do word=${word//[\"\']/} # Data validation if [[ $word =~ ^.+[=].+$ ]]; then - sed -i "1a export $word" /etc/services.d/*/run # Export the variable - sed -i "1a echo \"\$(tput sgr0)\"" /etc/services.d/*/run # Revert normal color - sed -i "1a echo \"\$(tput setaf 2)... ENV exported : $word" /etc/services.d/*/run # Show text in colour + sed -i "1a export $word" /etc/services.d/*/run # Export the variable + sed -i "1a echo \"\$(tput setaf 2)... ENV exported : $word\$(tput sgr0)\"" /etc/services.d/*/run # Show text in colour 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"