1
0
Fork 0
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:
Roman Kupriyanov 2021-07-21 02:17:02 +03:00 committed by GitHub
parent 976f8b8005
commit 76c1113cd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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