mirror of
https://github.com/YunoHost-Apps/uptime-kuma_ynh.git
synced 2024-10-01 13:34:58 +02:00
fix restore logs
This commit is contained in:
parent
266322dbb6
commit
db33e5cb30
2 changed files with 4 additions and 2 deletions
|
@ -95,7 +95,7 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
|
|||
|
||||
# ynh_backup --src_path="/etc/cron.d/$app"
|
||||
|
||||
# ynh_backup --src_path="/etc/$app/"
|
||||
ynh_backup --src_path="/var/log/$app/"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE MYSQL DATABASE
|
||||
|
|
|
@ -148,7 +148,7 @@ cd $final_path && ynh_exec_warn_less $ynh_npm install
|
|||
|
||||
# ynh_restore_file --origin_path="/etc/cron.d/$app"
|
||||
|
||||
# ynh_restore_file --origin_path="/etc/$app/"
|
||||
ynh_restore_file --origin_path="/var/log/$app/"
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEMD
|
||||
|
@ -170,6 +170,8 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
mkdir /var/log/$app/
|
||||
|
||||
yunohost service add $app --description="Uptime Kuma, a fancy monitoring tool" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue