mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 03:14:04 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -13,7 +13,6 @@ chown -R paperless:paperless /config/addons_config/$slug
|
|||||||
|
|
||||||
# Enable variables acceptation with the specific entrypoint
|
# Enable variables acceptation with the specific entrypoint
|
||||||
if [ -f /etc/cont-init.d/90-config_yaml.sh ]; then
|
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 "/import os/a os.environ[\'\${line%%=*}\'] = \'\${line#*=}\'" settings.py
|
||||||
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
|
|
||||||
echo "config.yaml enabled"
|
echo "config.yaml enabled"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user