mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
Update restore
This commit is contained in:
parent
08271a3928
commit
fb5e64ba72
1 changed files with 20 additions and 7 deletions
|
@ -71,9 +71,14 @@ chown -R $app:$app $final_path
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
if [ "$(lsb_release --codename --short)" != "jessie" ]
|
||||||
ynh_restore_file "/etc/php5/fpm/pool.d/$app.conf"
|
then
|
||||||
ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
|
ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf"
|
||||||
|
ynh_restore_file "/etc/php/7.0/fpm/conf.d/20-$app.ini"
|
||||||
|
else
|
||||||
|
ynh_restore_file "/etc/php5/fpm/pool.d/$app.conf"
|
||||||
|
ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
|
@ -81,14 +86,22 @@ ynh_restore_file "/etc/php5/fpm/conf.d/20-$app.ini"
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Define and install dependencies
|
if [ "$(lsb_release --codename --short)" != "jessie" ]
|
||||||
ynh_install_app_dependencies php5-sqlite
|
then
|
||||||
|
ynh_install_app_dependencies php7.0-sqlite3
|
||||||
|
else
|
||||||
|
ynh_install_app_dependencies php5-sqlite
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX AND PHP-FPM
|
# RELOAD NGINX AND PHP-FPM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
if [ "$(lsb_release --codename --short)" != "jessie" ]
|
||||||
systemctl reload php5-fpm
|
then
|
||||||
|
systemctl reload php7.0-fpm
|
||||||
|
else
|
||||||
|
systemctl reload php5-fpm
|
||||||
|
fi
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
Loading…
Add table
Reference in a new issue