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" #=================================================