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