Add permissions

https://github.com/alexbelgium/hassio-addons/issues/676
This commit is contained in:
Alexandre
2023-01-30 15:00:23 +01:00
committed by GitHub
parent 08eadcd7f3
commit 3860d2584f

View File

@@ -16,6 +16,8 @@ DATABASESOURCE="$(dirname "${CONFIGSOURCE}")/cache.db"
# Make sure folder exist
mkdir -p "$(dirname "${CONFIGSOURCE}")"
mkdir -p "$(dirname "${DATABASESOURCE}")"
chmod 777 -R "$(dirname "${CONFIGSOURCE}")"
chmod 777 -R "$(dirname "${DATABASESOURCE}")"
# Check absence of config file
if [ -f /data/config.yaml ] && [ ! -L /data/config.yaml ]; then