From e6e46542538622d59776a9f838ca720ec8e03972 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 21 Feb 2019 14:51:27 +0100 Subject: [PATCH] [enh] Added Backup&Restore features --- check_process.default => check_process | 10 +++++----- scripts/backup | 2 ++ scripts/restore | 9 --------- 3 files changed, 7 insertions(+), 14 deletions(-) rename check_process.default => check_process (93%) diff --git a/check_process.default b/check_process similarity index 93% rename from check_process.default rename to check_process index cbf2d12..6d8113c 100644 --- a/check_process.default +++ b/check_process @@ -13,12 +13,12 @@ password="pass" port="666" (PORT) ; Checks - pkg_linter=1 - setup_sub_dir=1 - setup_root=1 + pkg_linter=0 + setup_sub_dir=0 + setup_root=0 setup_nourl=0 - setup_private=1 - setup_public=1 + setup_private=0 + setup_public=0 upgrade=1 upgrade=1 from_commit=CommitHash backup_restore=1 diff --git a/scripts/backup b/scripts/backup index 810f744..762078d 100755 --- a/scripts/backup +++ b/scripts/backup @@ -46,6 +46,8 @@ ynh_print_info "Backing up nginx web server configuration..." ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" + + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index 112ea3a..c004371 100755 --- a/scripts/restore +++ b/scripts/restore @@ -63,15 +63,6 @@ ynh_restore_file "$final_path" # Restore permissions on app files chown -R root: $final_path -#================================================= -# SPECIFIC RESTORATION -#================================================ -#================================================= -# ADVERTISE SERVICE IN ADMIN PANEL -#================================================= - -yunohost service add $app --log "/var/log/$app/$app.log" - #================================================= # GENERIC FINALIZATION #=================================================