diff --git a/scripts/backup b/scripts/backup index 20cd979..3e18628 100755 --- a/scripts/backup +++ b/scripts/backup @@ -29,6 +29,8 @@ ynh_backup --src_path="/var/lib/$app" ynh_backup --src_path="/etc/metronome/conf.d/$app.cfg.lua" +ynh_backup --src_path="/var/log/$app/" + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/restore b/scripts/restore index ac3076c..e8610d7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -46,6 +46,8 @@ systemctl enable "$app.service" --quiet yunohost service add "$app" --description="XMPP gateway for the IRC network" --log="/var/log/$app/$app.log" ynh_restore_file --origin_path="/etc/logrotate.d/$app" + +ynh_restore_file --origin_path="/var/log/$app/" chown -R _biboumi:_biboumi "/var/log/$app" #=================================================