mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Adapt permissions for hidden files
https://github.com/alexbelgium/hassio-addons/issues/1201#issuecomment-1912293374
This commit is contained in:
@@ -104,19 +104,11 @@ fi
|
||||
# PERMISSIONS #
|
||||
###############
|
||||
|
||||
mkdir -p "$DATA_DIR"
|
||||
chmod -R 777 /data
|
||||
chmod -R 777 "$DATA_DIR"
|
||||
chown -R "$PUID:$PGID" "$DATA_DIR"
|
||||
if [ -f "$DATA_DIR"/.secret ]; then
|
||||
echo ".secret file is existing"
|
||||
chmod 777 "$DATA_DIR"/.secret
|
||||
chown "$PUID:$PGID" "$DATA_DIR"/.secret
|
||||
fi
|
||||
if [ -f /config/addons_config/mealie_data/.secret ]; then
|
||||
chmod 777 /config/addons_config/mealie_data/.secret
|
||||
chown "$PUID:$PGID" /config/addons_config/mealie_data/.secret
|
||||
fi
|
||||
mkdir -p "$DATA_DIR"
|
||||
cd "$DATA_DIR" || true
|
||||
chmod -R 777 .
|
||||
chown -R "$PUID:$PGID" .
|
||||
echo "Permissions adapted"
|
||||
|
||||
bashio::log.info "Starting nginx"
|
||||
|
||||
Reference in New Issue
Block a user