diff --git a/scripts/install b/scripts/install index 6e1e30c..e7c6e96 100755 --- a/scripts/install +++ b/scripts/install @@ -262,8 +262,7 @@ yunohost service add $app --log "/var/log/$app/$app.log" #================================================= ynh_print_info --message="Reloading minetest..." -ynh_systemd_action --action=restart --line_match="Server for gameid=minetest listening on :::30000." --log_path="/var/log/$app/minetest.log" -sleep 1 +ynh_systemd_action --action=restart --line_match="Server for gameid=\"$app\" listening on :::30000." --log_path="/var/log/$app/minetest.log" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index a49b183..5b65c32 100755 --- a/scripts/restore +++ b/scripts/restore @@ -104,7 +104,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_print_info --message="Reloading minetest..." -ynh_systemd_action --action=restart --line_match="Server for gameid="$app" listening on :::30000." --log_path="/var/log/$app/minetest.log" +ynh_systemd_action --action=restart --line_match="Server for gameid=\"$app\" listening on :::30000." --log_path="/var/log/$app/minetest.log" #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 25810e2..33cdd44 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -180,7 +180,7 @@ chown -R $app: $home_path #================================================= ynh_print_info --message="Restarting Minetest..." -ynh_systemd_action --action=restart --line_match="Server for gameid="$app" listening on :::30000." --log_path="/var/log/$app/minetest.log" +ynh_systemd_action --action=restart --line_match="Server for gameid=\"$app\" listening on :::30000." --log_path="/var/log/$app/minetest.log" #================================================= # END OF SCRIPT