From fc62c257d9a072f1b3b123b9e51be10b0f39c9b4 Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 30 Sep 2022 12:15:43 +0700 Subject: [PATCH] Should work --- conf/systemd.service | 2 +- scripts/restore | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 3ca4c0f..bbb1e62 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Small description of the service +Description=A tiny little drawing app After=network.target [Service] diff --git a/scripts/restore b/scripts/restore index 6960aff..76a9190 100755 --- a/scripts/restore +++ b/scripts/restore @@ -109,6 +109,13 @@ ynh_script_progression --message="Restoring the logrotate configuration..." --we ynh_restore_file --origin_path="/etc/logrotate.d/$app" +#================================================= +# RESTORE THE LOGS +#================================================= +ynh_script_progression --message="Restoring the logs..." --weight=1 + +ynh_restore_file --origin_path="/var/log/$app/$app.log" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================