From 3b80708d783811c03a9c470d93e314858d7a0f0e Mon Sep 17 00:00:00 2001 From: Yalh Date: Wed, 30 Jan 2019 03:30:52 +0100 Subject: [PATCH] add start for restore --- scripts/backup | 2 +- scripts/restore | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/backup b/scripts/backup index 0fe1c51..4a8b7f0 100644 --- a/scripts/backup +++ b/scripts/backup @@ -74,4 +74,4 @@ ynh_backup "/etc/systemd/system/$app.service" # BACKUP A CRON FILE #================================================= -ynh_backup "/etc/cron.d/$app" +#ynh_backup "/etc/cron.d/$app" diff --git a/scripts/restore b/scripts/restore index cf0c8dd..050fa17 100644 --- a/scripts/restore +++ b/scripts/restore @@ -60,7 +60,6 @@ ynh_restore_file "$final_path" ynh_install_app_dependencies postgresql postgresql-contrib ynh_psql_test_if_first_run -ynh_psql_create_user "$db_name" "$db_pwd" ynh_psql_create_db "$db_name" "$db_name" "$db_pwd" ynh_psql_execute_file_as_root ./db.sql "$db_name" @@ -100,6 +99,7 @@ ynh_install_nodejs 10 ynh_restore_file "/etc/systemd/system/$app.service" systemctl enable $app.service +systemctl start $app #================================================= # ADVERTISE SERVICE IN ADMIN PANEL @@ -111,7 +111,7 @@ yunohost service add $app --description "$app daemon for Wiki.js" --log "/var/lo # RESTORE THE CRON FILE #================================================= -ynh_restore_file "/etc/cron.d/$app" +#ynh_restore_file "/etc/cron.d/$app" #================================================= # RESTORE THE LOGROTATE CONFIGURATION