1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spacedeck_ynh.git synced 2024-09-03 20:26:14 +02:00

Fix backup-restore: add log directory

This commit is contained in:
Salamandar 2024-01-17 16:31:08 +01:00
parent 7e83147037
commit a73288a1d6
2 changed files with 3 additions and 0 deletions

View file

@ -40,6 +40,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
ynh_backup --src_path="/etc/logrotate.d/$app"
ynh_backup --src_path="/var/log/$app/"
#=================================================
# BACKUP SYSTEMD

View file

@ -48,6 +48,8 @@ yunohost service add "$app" --description="$app whiteboard" --log="/var/log/$app
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
ynh_restore_file --origin_path="/var/log/$app/"
#=================================================
# RELOAD NGINX AND THE APP SERVICE
#=================================================