Browse Source

Added fix specific to stationeers. Causes var to be overwritten

pull/1787/head
Daniel Gibbs 7 years ago
parent
commit
7c9b4fc8ac
  1. 7
      lgsm/functions/install_config.sh

7
lgsm/functions/install_config.sh

@ -61,7 +61,12 @@ fn_set_config_vars(){
echo "changing hostname."
fn_script_log_info "changing hostname."
sleep 1
sed -i "s/SERVERNAME/${servername}/g" "${servercfgfullpath}"
if [ $(grep SERVERNAME=SERVERNAME \"${lgsmdir}/config-default/config-game/${config}\") ]; then
sed -i "s/SERVERNAME=SERVERNAME/SERVERNAME=${servername}/g" "${servercfgfullpath}"
else
sed -i "s/SERVERNAME/${servername}/g" "${servercfgfullpath}"
fi
echo "changing rcon/admin password."
fn_script_log_info "changing rcon/admin password."
sed -i "s/ADMINPASSWORD/${rconpass}/g" "${servercfgfullpath}"

Loading…
Cancel
Save