mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Add more visibility for DB/Cron upgrades
This commit is contained in:
parent
976f8b8005
commit
76c1113cd8
1 changed files with 18 additions and 6 deletions
|
@ -167,22 +167,34 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
# PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=4
|
||||
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2
|
||||
|
||||
# Create a dedicated PHP-FPM config
|
||||
ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||
|
||||
# Run Composer
|
||||
pushd "$final_path"
|
||||
ynh_exec_as "$app" php$phpversion bin/composer.phar install --no-dev --quiet
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
# CRON CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Upgrading Cron configuration..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||
chown root: "/etc/cron.d/$app"
|
||||
chmod 644 "/etc/cron.d/$app"
|
||||
|
||||
# Run Composer
|
||||
#=================================================
|
||||
# DATABASE STRUCTURE UPDATE
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Upgrading DB structure..." --weight=4
|
||||
|
||||
# Run DB structure update
|
||||
pushd "$final_path"
|
||||
ynh_exec_as "$app" php$phpversion bin/composer.phar install --no-dev --quiet
|
||||
ynh_exec_as "$app" bin/console dbstructure update
|
||||
#ynh_exec_as "$app" bin/console config system addon ldapauth
|
||||
popd
|
||||
|
|
Loading…
Add table
Reference in a new issue