Browse Source

SC2143

pull/1863/head
Daniel Gibbs 7 years ago
parent
commit
6438fff13a
  1. 3
      lgsm/functions/install_config.sh

3
lgsm/functions/install_config.sh

@ -61,8 +61,7 @@ fn_set_config_vars(){
echo "changing hostname."
fn_script_log_info "changing hostname."
sleep 1
if [ "$(grep SERVERNAME=SERVERNAME \"${lgsmdir}/config-default/config-game/${config}\" 2>/dev/null)" ]; then
if grep -q "SERVERNAME=SERVERNAME" "${lgsmdir}/config-default/config-game/${config}" 2>/dev/null; then
sed -i "s/SERVERNAME=SERVERNAME/SERVERNAME=${servername}/g" "${servercfgfullpath}"
else
sed -i "s/SERVERNAME/${servername}/g" "${servercfgfullpath}"

Loading…
Cancel
Save