|
|
@ -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} |