1
0
Fork 0
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:
Rafi594 2019-10-27 09:26:04 +01:00
parent d8ed05e786
commit 4410447b39
2 changed files with 7 additions and 1 deletions

View file

@ -58,6 +58,10 @@ ynh_print_info --message="Removing app main directory"
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
ynh_secure_remove --file="$home_path" ynh_secure_remove --file="$home_path"
# Remove the log files
ynh_secure_remove "/var/log/$app"
#================================================= #=================================================
# REMOVE LOGROTATE CONFIGURATION # REMOVE LOGROTATE CONFIGURATION
#================================================= #=================================================

View file

@ -84,8 +84,10 @@ systemctl enable $app.service
# ADVERTISE SERVICE IN ADMIN PANEL # 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 # RESTORE THE LOGROTATE CONFIGURATION