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:
parent
7e83147037
commit
a73288a1d6
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue