diff --git a/.templates/90-config_yaml.sh b/.templates/90-config_yaml.sh index f53d45e74..beb62ee24 100644 --- a/.templates/90-config_yaml.sh +++ b/.templates/90-config_yaml.sh @@ -7,7 +7,6 @@ # Where is the config CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") -chmod 755 $CONFIGSOURCE # Check if config file is there, or create one from template if [ -f $CONFIGSOURCE ]; then @@ -30,6 +29,9 @@ else # bashio::exit.nok fi +# Permissions +chmod -R 755 "$(dirname "${CONFIGSOURCE}")" + # Check if yaml is valid EXIT_CODE=0 yamllint -d relaxed $CONFIGSOURCE &>ERROR || EXIT_CODE=$?