Browse Source

Encapsulate service name in quotations for stop file as well

pull/450/head
Scarsz 10 years ago
parent
commit
c806a25cbb
  1. 6
      functions/fn_stop

6
functions/fn_stop

@ -2,7 +2,7 @@
# LGSM fn_stop function # LGSM fn_stop function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 260515 # Version: 180615
# Description: Stops the server. # Description: Stops the server.
@ -113,7 +113,7 @@ if [ "${gamename}" == "7 Days To Die" ] ; then
fn_printok "${servername} is already stopped using graceful shutdown" fn_printok "${servername} is already stopped using graceful shutdown"
fn_scriptlog "${servername} is already stopped using graceful shutdown" fn_scriptlog "${servername} is already stopped using graceful shutdown"
else else
tmux kill-session -t ${servicename} tmux kill-session -t "${servicename}"
fn_printok "${servername}" fn_printok "${servername}"
fn_scriptlog "Stopped ${servername}" fn_scriptlog "Stopped ${servername}"
fi fi
@ -124,7 +124,7 @@ else
fn_printfail "${servername} is already stopped" fn_printfail "${servername} is already stopped"
fn_scriptlog "${servername} is already stopped" fn_scriptlog "${servername} is already stopped"
else else
tmux kill-session -t ${servicename} tmux kill-session -t "${servicename}"
fn_printok "${servername}" fn_printok "${servername}"
fn_scriptlog "Stopped ${servername}" fn_scriptlog "Stopped ${servername}"
fi fi

Loading…
Cancel
Save