From 1f5ab26a2a4cd20230620948abd6775d50f28440 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 13:05:43 +0300 Subject: [PATCH] fix restore logs --- scripts/backup | 2 +- scripts/restore | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/backup b/scripts/backup index 295a5ff..8235388 100755 --- a/scripts/backup +++ b/scripts/backup @@ -95,7 +95,7 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" # ynh_backup --src_path="/etc/cron.d/$app" -# ynh_backup --src_path="/etc/$app/" +ynh_backup --src_path="/var/log/$app/" #================================================= # BACKUP THE MYSQL DATABASE diff --git a/scripts/restore b/scripts/restore index 05e5d27..cca7cc0 100755 --- a/scripts/restore +++ b/scripts/restore @@ -148,7 +148,7 @@ cd $final_path && ynh_exec_warn_less $ynh_npm install # ynh_restore_file --origin_path="/etc/cron.d/$app" -# ynh_restore_file --origin_path="/etc/$app/" +ynh_restore_file --origin_path="/var/log/$app/" #================================================= # RESTORE SYSTEMD @@ -170,6 +170,8 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 +mkdir /var/log/$app/ + yunohost service add $app --description="Uptime Kuma, a fancy monitoring tool" --log="/var/log/$app/$app.log" #=================================================