1
0
Fork 0
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:
Hadrien 2021-11-02 13:05:43 +03:00
parent 266322dbb6
commit db33e5cb30
2 changed files with 4 additions and 2 deletions

View file

@ -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/cron.d/$app"
# ynh_backup --src_path="/etc/$app/" ynh_backup --src_path="/var/log/$app/"
#================================================= #=================================================
# BACKUP THE MYSQL DATABASE # BACKUP THE MYSQL DATABASE

View file

@ -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/cron.d/$app"
# ynh_restore_file --origin_path="/etc/$app/" ynh_restore_file --origin_path="/var/log/$app/"
#================================================= #=================================================
# RESTORE SYSTEMD # 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 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" yunohost service add $app --description="Uptime Kuma, a fancy monitoring tool" --log="/var/log/$app/$app.log"
#================================================= #=================================================