From 041016d3372a837afa370e3c0a87e9f35c2aa7f9 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 28 Jan 2021 13:42:06 +0100 Subject: [PATCH] Fix --- scripts/install | 6 +++--- scripts/upgrade | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 4fb58a3..353dac6 100755 --- a/scripts/install +++ b/scripts/install @@ -147,18 +147,18 @@ ynh_store_file_checksum "$final_path/.env" # Set permissions to app files chown -R $app: $final_path -chown -R $app: ${public_path} +chown -R $app: $public_path chmod -R 755 ${public_path} #================================================= # SETUP SSOWAT #================================================= -ynh_script_progression --message="Configuring SSOwat..." --weight=1 +ynh_script_progression --message="Configuring permissions..." --weight=1 # Make app public if necessary or protect it if [ $is_public -eq 1 ] then - ynh_permission_update --permission "main" --add "visitors" + ynh_permission_update --permission="main" --add="visitors" fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5fb0c73..6e32d54 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -136,7 +136,7 @@ ynh_install_composer ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\" -pushd "$final_path" +pushd $final_path php$phpversion artisan migrate -n --force php$phpversion artisan config:clear -n php$phpversion artisan config:cache -n