Browse Source

added functionality for auto-install

pull/254/merge
Daniel Gibbs 10 years ago
parent
commit
1e4b299bbe
  1. 9
      functions/fn_serverconfig

9
functions/fn_serverconfig

@ -27,7 +27,12 @@ echo ""
echo "Configuring ${gamename} Server"
echo "================================="
sleep 1
read -p "Enter server name: " servername
read -p "Enter rcon password: " rconpass
if [ -z ${autoinstall} ]; then
read -p "Enter server name: " servername
read -p "Enter rcon password: " rconpass
else
servername="${servicename}"
rconpass="${rconpass}"
fi
sed -i "s/\"hostname\"/\"${servername}\"/g" ${servercfgfullpath}
sed -i "s/\"rconpassword\"/\"${rconpass}\"/g" ${servercfgfullpath}
Loading…
Cancel
Save