Update 20-folders.sh

This commit is contained in:
Alexandre
2022-11-12 20:48:41 +01:00
committed by GitHub
parent 0af53e132b
commit 8be55e14e2

View File

@@ -13,7 +13,6 @@ chown -R paperless:paperless /config/addons_config/$slug
# Enable variables acceptation with the specific entrypoint
if [ -f /etc/cont-init.d/90-config_yaml.sh ]; then
sed -i "/# Export the variable/a sed -i \"1a export \$line\" /sbin/docker-entrypoint.sh" /etc/cont-init.d/90-config_yaml.sh
sed -i "/# Export the variable/a sed -i \"1a export \$line\" /usr/local/bin/paperless_cmd.sh" /etc/cont-init.d/90-config_yaml.sh
sed -i "/import os/a os.environ[\'\${line%%=*}\'] = \'\${line#*=}\'" settings.py
echo "config.yaml enabled"
fi