mirror of
https://github.com/YunoHost-Apps/minio_ynh.git
synced 2024-09-03 19:46:18 +02:00
Test logs
This commit is contained in:
parent
695fea2c21
commit
0d707991c1
2 changed files with 13 additions and 0 deletions
|
@ -76,6 +76,12 @@ ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf"
|
|||
|
||||
ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||
|
||||
#=================================================
|
||||
# BACKUP LOGS
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# BACKUP SYSTEMD
|
||||
#=================================================
|
||||
|
|
|
@ -118,6 +118,13 @@ ynh_script_progression --message="Restoring the logrotate configuration..." --ti
|
|||
|
||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE LOGS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring the logs..." --time --weight=1
|
||||
|
||||
ynh_restore_file --origin_path="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue