From caa4d16149cd91bff4b75454b4573e46891c6af0 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Tue, 7 Feb 2017 18:00:52 +0100 Subject: [PATCH] [enh] Update backup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Juste pour suivre l'install si l'idée de laisser php-fpm par défaut est maintenue. --- scripts/backup | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/backup b/scripts/backup index af8ccd9..b18464c 100755 --- a/scripts/backup +++ b/scripts/backup @@ -9,6 +9,8 @@ app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers source /usr/share/yunohost/helpers +domain=$(ynh_app_setting_get $app domain) + # Backup sources & data # Note: the last argument is where to save this path, see the restore script. ynh_backup "/var/www/${app}" "sources" @@ -23,11 +25,10 @@ ynh_backup "/var/www/${app}" "sources" ### MySQL end ### # Copy NGINX configuration -domain=$(ynh_app_setting_get "$app" domain) ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf" ### PHP (remove if not used) ### # If a dedicated php-fpm process is used: -# # Copy PHP-FPM pool configuration -# ynh_backup "/etc/php5/fpm/pool.d/${app}.conf" "php-fpm.conf" +# Copy PHP-FPM pool configuration +ynh_backup "/etc/php5/fpm/pool.d/${app}.conf" "php-fpm.conf" ### PHP end ###