Enable config.yaml

https://github.com/alexbelgium/hassio-addons/issues/528
This commit is contained in:
Alexandre
2022-11-08 17:01:41 +01:00
committed by GitHub
parent af0683c66b
commit 7bba805ab5

View File

@@ -10,3 +10,8 @@ fi
chmod -R 755 /config/addons_config/$slug
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 2>/dev/null" /etc/cont-init.d/90-config_yaml.sh
fi