1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00
This commit is contained in:
ericgaspar 2021-01-29 16:41:06 +01:00
parent eff749ade5
commit 0ef89f30d1
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 6 additions and 9 deletions

View file

@ -68,6 +68,7 @@ ynh_system_user_create --username=$app
# Restore permissions on app files
chown -R $app: $final_path
chmod -R 755 $final_path
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

View file

@ -90,18 +90,13 @@ ynh_install_composer
#=================================================
# INSTALL AND INITIALIZE COMPOSER
#=================================================
ynh_script_progression --message="Installing Composer..." --weight=10
ynh_script_progression --message="Upgrading source files..." --weight=10
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
pushd $final_path
# install the PHP dependencies using Composer
ynh_exec_warn_less ynh_composer_exec --commands="install --no-dev"
ynh_script_progression --message="Upgrading source files..." --weight=4
pushd $final_path
php$phpversion artisan migrate && php$phpversion artisan cache:clear && php$phpversion artisan view:clear
popd
fi
php$phpversion artisan migrate && php$phpversion artisan cache:clear && php$phpversion artisan view:clear
popd
#=================================================
# GENERIC FINALIZATION
@ -111,6 +106,7 @@ fi
# Set permissions on app files
chown -R $app: $final_path
chmod -R 755 $final_path
#=================================================
# RELOAD NGINX