1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/alltube_ynh.git synced 2024-09-03 18:06:12 +02:00

handle php 7.3 in restore script

This commit is contained in:
Clément 2020-04-12 16:46:11 +02:00
parent d865376811
commit 0c8c8a81ff

View file

@ -9,6 +9,8 @@
#Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
source ../settings/scripts/ynh_add_extra_apt_repos
source ../settings/scripts/ynh_install_php
#=================================================
# MANAGE SCRIPT FAILURE
@ -67,12 +69,13 @@ ynh_system_user_create $app
# Restore permissions on app files
chown -R root: $final_path
chown -R alltube: $final_path/templates_c/
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================
ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf"
ynh_restore_file --origin_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf"
#=================================================
# SPECIFIC RESTORATION
@ -83,6 +86,7 @@ ynh_print_info "Reinstalling dependencies..."
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
ynh_install_php --phpversion="$YNH_PHP_VERSION" --package="$extra_pkg_dependencies"
#=================================================
# GENERIC FINALIZATION
@ -91,7 +95,7 @@ ynh_install_app_dependencies $pkg_dependencies
#=================================================
ynh_print_info "Reloading nginx web server and php-fpm..."
systemctl reload php7.0-fpm
systemctl reload php7.3-fpm
systemctl reload nginx
#=================================================