1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

use the right folder for app.conf backup and restore

This commit is contained in:
Jean-Baptiste Holcroft 2019-03-31 15:25:25 +02:00
parent 0426958992
commit 41577b9bc7
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
ynh_print_info "Backing up php-fpm configuration..." ynh_print_info "Backing up php-fpm configuration..."
ynh_backup "/etc/php/7.0/fpm/pool.d/$app.conf" ynh_backup "/etc/php/7.2/fpm/pool.d/$app.conf"
#================================================= #=================================================
# BACKUP THE MYSQL DATABASE # BACKUP THE MYSQL DATABASE

View file

@ -77,7 +77,7 @@ chown -R root: $final_path
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION
#================================================= #=================================================
ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf" ynh_restore_file "/etc/php/7.2/fpm/pool.d/$app.conf"
#================================================= #=================================================
# SPECIFIC RESTORATION # SPECIFIC RESTORATION
@ -131,7 +131,7 @@ ynh_restore_file "/etc/logrotate.d/$app"
#================================================= #=================================================
ynh_print_info "Reloading nginx web server and php-fpm..." ynh_print_info "Reloading nginx web server and php-fpm..."
systemctl reload php7.0-fpm systemctl reload php7.2-fpm
systemctl reload nginx systemctl reload nginx
#================================================= #=================================================