From 946ba110d0fce6c18e5dd6cf6dd3fc9b1e699e34 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sun, 27 Aug 2017 19:56:06 +0200 Subject: [PATCH] Use shortest ynh_backup syntax --- check_process | 6 +++--- scripts/backup | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/check_process b/check_process index 4ca01a5..2cdd54e 100644 --- a/check_process +++ b/check_process @@ -11,10 +11,10 @@ setup_nourl=0 setup_private=0 setup_public=0 - upgrade=1 + upgrade=0 backup_restore=1 - multi_instance=1 - incorrect_path=1 + multi_instance=0 + incorrect_path=0 port_already_use=0 change_url=0 ;;; Levels diff --git a/scripts/backup b/scripts/backup index dc74015..0f35234 100644 --- a/scripts/backup +++ b/scripts/backup @@ -37,20 +37,20 @@ db_name=$(ynh_app_setting_get $app db_name) # BACKUP THE APP MAIN DIR #================================================= -ynh_backup "$final_path" "${YNH_APP_BACKUP_DIR}$final_path" +ynh_backup "$final_path" #================================================= # BACKUP THE NGINX CONFIGURATION #================================================= -ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "${YNH_APP_BACKUP_DIR}/etc/nginx/conf.d/$domain.d/$app.conf" +ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # BACKUP THE PHP-FPM CONFIGURATION #================================================= -ynh_backup "/etc/php5/fpm/pool.d/$app.conf" "${YNH_APP_BACKUP_DIR}/etc/php5/fpm/pool.d/$app.conf" -ynh_backup "/etc/php5/fpm/conf.d/20-$app.ini" "${YNH_APP_BACKUP_DIR}/etc/php5/fpm/conf.d/20-$app.ini" +ynh_backup "/etc/php5/fpm/pool.d/$app.conf" +ynh_backup "/etc/php5/fpm/conf.d/20-$app.ini" #================================================= # BACKUP THE MYSQL DATABASE