From 266322dbb608ee195ee9f1919c5e7d5596ac6064 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 12:48:40 +0300 Subject: [PATCH 1/3] update readme --- README.md | 2 +- README_fr.md | 2 +- doc/DISCLAIMER.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 10c6cb0..7268b84 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ It is a self-hosted monitoring tool like "Uptime Robot". - ARM architecture not supported - This app needs a manual post-install - Uses N to install specific nodejs version -- We could pre-configure mail notifications with YunoHost mail server as an improvement. +- We could pre-configure mail notifications with YunoHost mail server as an improvement. See comments in file to try to do it with Curl and WebSockets or Sqlite. ## Documentation and resources diff --git a/README_fr.md b/README_fr.md index 171c8ea..c16189d 100644 --- a/README_fr.md +++ b/README_fr.md @@ -40,7 +40,7 @@ It is a self-hosted monitoring tool like "Uptime Robot". - ARM architecture not supported - This app needs a manual post-install - Uses N to install specific nodejs version -- We could pre-configure mail notifications with YunoHost mail server as an improvement. +- We could pre-configure mail notifications with YunoHost mail server as an improvement. See comments in file to try to do it with Curl and WebSockets or Sqlite. ## Documentations et ressources diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 1dcb93a..859c139 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -3,4 +3,4 @@ - ARM architecture not supported - This app needs a manual post-install - Uses N to install specific nodejs version -- We could pre-configure mail notifications with YunoHost mail server as an improvement. +- We could pre-configure mail notifications with YunoHost mail server as an improvement. See comments in file to try to do it with Curl and WebSockets or Sqlite. From db33e5cb300af5cae54cbd54d13e41f455e894ee Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 13:05:43 +0300 Subject: [PATCH 2/3] 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" #================================================= From ff3e0479f9920c7ca8cce0409cde67e2dc1396a6 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 13:19:22 +0300 Subject: [PATCH 3/3] actually fix restore --- scripts/restore | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index cca7cc0..da126a3 100755 --- a/scripts/restore +++ b/scripts/restore @@ -170,8 +170,6 @@ 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" #=================================================