diff --git a/scripts/install b/scripts/install index 80dc886..c4c4ab1 100755 --- a/scripts/install +++ b/scripts/install @@ -233,8 +233,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1 # Set permissions to app files chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root: "$final_path" -chown $app: "$final_path" +chown -R $app: "$final_path" mkdir -p "$final_path/live/log" chown -R $app: "$final_path/live/log/" diff --git a/scripts/restore b/scripts/restore index a83f92c..515cc8c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -82,8 +82,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path # Restore permissions on app files chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root: "$final_path" -chown $app: "$final_path" +chown -R $app: "$final_path" mkdir -p "$final_path/live/log" chown -R $app: "$final_path/live/log/" diff --git a/scripts/upgrade b/scripts/upgrade index fa1c6c0..f226d21 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -331,8 +331,7 @@ ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.d/$app.conf" # Set permissions to app files chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chown -R root: "$final_path" -chown $app: "$final_path" +chown -R $app: "$final_path" mkdir -p "$final_path/live/log" chown -R $app: "$final_path/live/log/"