From 1e4b299bbe372cdc0ea8632ab46a9531f2fe1103 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 1 Dec 2014 16:34:01 +0000 Subject: [PATCH] added functionality for auto-install --- functions/fn_serverconfig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/functions/fn_serverconfig b/functions/fn_serverconfig index 0e8d46150..5d79f4c21 100644 --- a/functions/fn_serverconfig +++ b/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} \ No newline at end of file