1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minetest_ynh.git synced 2024-09-03 20:36:00 +02:00

Restore fixes

This commit is contained in:
Rafi594 2019-10-23 15:20:32 +02:00
parent 1b1bdbfd82
commit ed8659b5e4
2 changed files with 3 additions and 5 deletions

View file

@ -50,7 +50,7 @@ final_path=/opt/yunohost/$app
test ! -e "$final_path" || ynh_die "This path already contains a folder" test ! -e "$final_path" || ynh_die "This path already contains a folder"
# Register (book) web path # Register (book) web path
ynh_webpath_register --app=$app --domain=$domain --path_url=/ ynh_webpath_register --app=$app --domain=$domain --path_url="/"
#================================================= #=================================================
# STORE SETTINGS FROM MANIFEST # STORE SETTINGS FROM MANIFEST

View file

@ -32,7 +32,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#================================================= #=================================================
ynh_print_info --message="Validating restoration parameters..." ynh_print_info --message="Validating restoration parameters..."
ynh_webpath_register --app=$app --domain=$domain --path_url=/ ynh_webpath_register --app=$app --domain=$domain --path_url="/"
test ! -d $final_path \ test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path " || ynh_die --message="There is already a directory: $final_path "
@ -104,9 +104,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#================================================= #=================================================
ynh_print_info --message="Reloading minetest..." ynh_print_info --message="Reloading minetest..."
systemctl restart $app ynh_systemd_action --action=restart --line_match="Server for gameid="$app" listening on :::30000." --log_path="/var/log/$app/minetest.log"
ynh_systemd_action -l "ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:30000." -p "/var/log/$app/minetest.log"
sleep 1
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT