From ca24c4c6c082a8b1aa13f7f03d8d154a013af439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 26 Feb 2023 11:08:15 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 99b6691..81d76a6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,6 +63,10 @@ then ynh_setup_source --dest_dir="$install_dir" --keep=".env public/uploads storage/uploads" fi +chmod 755 $install_dir +chmod -R o-rwx $install_dir +chown -R $app:www-data $install_dir + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #================================================= @@ -90,11 +94,11 @@ ynh_install_composer #================================================= # MODIFY A CONFIG FILE #================================================= -ynh_script_progression --message="Adding a configuration file..." --weight=1 +#ynh_script_progression --message="Adding a configuration file..." --weight=1 -app_url_domain="https://$domain${path%/}" +#app_url_domain="https://$domain${path%/}" -ynh_add_config --template=../conf/.env.example --destination=$install_dir/.env +#ynh_add_config --template=../conf/.env.example --destination=$install_dir/.env #================================================= # FINAL BOOKSTACK INSTALL @@ -109,13 +113,6 @@ pushd $install_dir php$phpversion artisan view:clear popd -chmod 755 $install_dir -chmod -R o-rwx $install_dir -chown -R $app:www-data $install_dir - -chmod 600 $install_dir/.env -chown $app:$app $install_dir/.env - #================================================= # START SYSTEMD SERVICE #=================================================