mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
Update upgrade
This commit is contained in:
parent
c034b72153
commit
bf15ad8a90
1 changed files with 12 additions and 6 deletions
|
@ -79,21 +79,27 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config --package="$extra_php_dependencies"
|
ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# PHP-FPM CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading Composer..." --weight=1
|
||||||
|
|
||||||
|
# Upgrade composer itself
|
||||||
|
ynh_install_composer
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL AND INITIALIZE COMPOSER
|
# INSTALL AND INITIALIZE COMPOSER
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Composer..." --weight=10
|
ynh_script_progression --message="Installing Composer..." --weight=10
|
||||||
|
|
||||||
# Install Composer
|
|
||||||
ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--no-dev"
|
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
|
# 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
|
ynh_script_progression --message="Upgrading source files..." --weight=4
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
php$phpversion artisan migrate
|
php$phpversion artisan migrate && php$phpversion artisan cache:clear && php$phpversion artisan view:clear
|
||||||
php$phpversion artisan cache:clear
|
|
||||||
php$phpversion artisan view:clear
|
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue