diff --git a/scripts/install b/scripts/install index 4764bc9..b8348d8 100644 --- a/scripts/install +++ b/scripts/install @@ -86,7 +86,7 @@ ynh_setup_source --dest_dir=$final_path --source_id="$architecture" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION @@ -115,7 +115,7 @@ mkdir -p "$config_path" ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml" chmod 600 "$config_path/navidrome.toml" -chown -R $app:$app "$config_path" +chown -R $app "$config_path" #================================================= # SETUP SYSTEMD diff --git a/scripts/restore b/scripts/restore index 43c15b4..51128ca 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,7 +66,7 @@ ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # SPECIFIC RESTORATION @@ -86,7 +86,7 @@ ynh_script_progression --message="Restoring various files..." --weight=2 ynh_restore_file --origin_path="/var/lib/$app" chmod 600 "/var/lib/$app/navidrome.toml" -chown -R $app:$app "/var/lib/$app" +chown -R $app "/var/lib/$app" #================================================= # RESTORE SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index b7f5d52..69c534d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,7 +89,7 @@ fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R $app:$app "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION @@ -117,7 +117,7 @@ config_path="/var/lib/$app" #ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml" chmod 600 "$config_path/navidrome.toml" -chown -R $app:$app "$config_path" +chown -R $app "$config_path" #================================================= # SETUP SYSTEMD