1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/biboumi_ynh.git synced 2024-09-03 18:15:58 +02:00

backup/restore logs

This commit is contained in:
Salamandar 2024-07-01 15:51:22 +02:00
parent 793433cc1a
commit 1228758e80
2 changed files with 4 additions and 0 deletions

View file

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

View file

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