mirror of
https://github.com/YunoHost-Apps/minetest_ynh.git
synced 2024-09-03 20:36:00 +02:00
Fix restore
This commit is contained in:
parent
d8ed05e786
commit
4410447b39
2 changed files with 7 additions and 1 deletions
|
@ -58,6 +58,10 @@ ynh_print_info --message="Removing app main directory"
|
|||
ynh_secure_remove --file="$final_path"
|
||||
ynh_secure_remove --file="$home_path"
|
||||
|
||||
# Remove the log files
|
||||
ynh_secure_remove "/var/log/$app"
|
||||
|
||||
|
||||
#=================================================
|
||||
# REMOVE LOGROTATE CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -84,8 +84,10 @@ systemctl enable $app.service
|
|||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
yunohost service add $app --log "/var/log/$app/minetest.log"
|
||||
mkdir /var/log/$app -p
|
||||
chown -R $app: /var/log/$app
|
||||
|
||||
yunohost service add $app --log "/var/log/$app/minetest.log"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE LOGROTATE CONFIGURATION
|
||||
|
|
Loading…
Reference in a new issue