diff --git a/check_process b/check_process index 9d03cee..8c0af72 100644 --- a/check_process +++ b/check_process @@ -23,8 +23,8 @@ backup_restore=1 multi_instance=0 incorrect_path=1 - port_already_use=0 - change_url=0 + port_already_use=1 + change_url=1 ;;; Levels Level 1=auto Level 2=auto diff --git a/scripts/backup b/scripts/backup index 8970d54..0999145 100644 --- a/scripts/backup +++ b/scripts/backup @@ -24,7 +24,7 @@ ynh_abort_if_errors # LOAD SETTINGS #================================================= -app=$YNH_APP_INSTANCE_NAME +app="zabbix" final_path=$(ynh_app_setting_get $app final_path) domain=$(ynh_app_setting_get $app domain) @@ -51,7 +51,6 @@ ynh_backup "/etc/zabbix/zabbix_agentd.d" #================================================= ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" - #================================================= # BACKUP THE PHP-FPM CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index bc98b6c..eb84da0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -83,13 +83,13 @@ ynh_app_setting_set $app final_path $final_path # Create a dedicated nginx config -ynh_restore_file "/etc/nginx/conf.d/mike.test.d/ynhzabbix.conf" +ynh_restore_file "/etc/nginx/conf.d/mike.test.d/$app.conf" #================================================= # PHP-FPM CONFIGURATION #================================================= -ynh_restore_file "/etc/php/7.0/fpm/pool.d/ynhzabbix.conf" +ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf" # Reload SSOwat config