From 6120370d3cdb4c93ff849b7bc16c2ff77456c28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 18 Jun 2024 22:41:33 +0200 Subject: [PATCH] Update install --- scripts/install | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index d9d5731..7fde590 100755 --- a/scripts/install +++ b/scripts/install @@ -24,7 +24,7 @@ ynh_script_progression --message="Setting up source files..." --weight=3 ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" -chown -R "$app:$app" "$install_dir" +chown -R "$app:www-data" "$install_dir" #================================================= # APP INITIAL CONFIGURATION @@ -54,8 +54,8 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Creating a data directory..." --weight=1 -chgrp "$app" -R "$install_dir/storage" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads" -chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads" "$install_dir/bootstrap/" +#chgrp "$app" -R "$install_dir/storage" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads" +#chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads" "$install_dir/bootstrap/" #================================================= # INSTALL APP WITH COMPOSER @@ -76,10 +76,9 @@ pushd "$install_dir" "php$phpversion" artisan config:cache -n popd -chmod 750 "$install_dir" -chmod 750 "$install_dir/bootstrap/cache" -chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" +chgrp "$app" -R "$install_dir/storage" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads" +chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public/dist" "$install_dir/public/sym" "$data_dir/uploads" "$install_dir/bootstrap/" #================================================= # END OF SCRIPT