diff --git a/scripts/install b/scripts/install index c8fb52b..b5bb202 100755 --- a/scripts/install +++ b/scripts/install @@ -97,8 +97,8 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" chmod 750 "$final_path" -#chmod -R o-rwx "$final_path" -chown -R $app: "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # CREATE DATA AND GROUPS FOLDER diff --git a/scripts/restore b/scripts/restore index 9e397e6..85524bd 100755 --- a/scripts/restore +++ b/scripts/restore @@ -68,8 +68,8 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" -#chmod -R o-rwx "$final_path" -chown -R $app: "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # RESTORE SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 50d38c1..e6161fd 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -104,8 +104,8 @@ then fi chmod 750 "$final_path" -#chmod -R o-rwx "$final_path" -chown -R $app: "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION