diff --git a/scripts/install b/scripts/install index 9192151..5f2aede 100755 --- a/scripts/install +++ b/scripts/install @@ -205,7 +205,7 @@ yunohost service add $app --description="Web based management to catalog things" # Set permissions to app files chown -R "$app:" "$log_path" -chown -R "$app:" "$public_path" +chown -R "$app:www-data" "$public_path" chown -R "$app:" "$final_path" chmod o-rwx "$log_path" diff --git a/scripts/restore b/scripts/restore index 5725f4b..9e8f76c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -70,7 +70,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path" --use_shell #================================================= # Restore permissions on app files -chown -R "$app:" "$public_path" +chown -R "$app:www-data" "$public_path" chown -R "$app:" "$final_path" #================================================= @@ -140,7 +140,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" # Set permissions to app files chown -R "$app:" "$log_path" -chown -R "$app:" "$public_path" +chown -R "$app:www-data" "$public_path" chown -R "$app:" "$final_path" chmod o-rwx "$log_path" diff --git a/scripts/upgrade b/scripts/upgrade index 581f56d..33fe0fa 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -197,7 +197,7 @@ yunohost service add $app --description="Web based management to catalog things" # Set permissions to app files chown -R "$app:" "$log_path" -chown -R "$app:" "$public_path" +chown -R "$app:www-data" "$public_path" chown -R "$app:" "$final_path" chmod o-rwx "$log_path"