From 295a82209d85ad283aefde93dc031d8b62861f38 Mon Sep 17 00:00:00 2001
From: Daniel Gibbs <me@danielgibbs.co.uk>
Date: Sun, 20 Dec 2015 17:21:17 +0000
Subject: [PATCH] Install filesdir now goes from serverfiles

---
 functions/fn_install_config | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/functions/fn_install_config b/functions/fn_install_config
index 39e95516f..2a0311634 100644
--- a/functions/fn_install_config
+++ b/functions/fn_install_config
@@ -2,7 +2,7 @@
 # LGSM fn_install_config function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="201215"
 
 fn_defaultconfig(){
 echo "creating ${servercfg} config file."
@@ -154,20 +154,9 @@ echo ""
 echo "Creating Configs"
 echo "================================="
 sleep 1
-if [ ! -d "${servercfgdir}" ]; then
-	echo -e "creating ${servercfgdir} dir...\c"
-	mkdir -pv "${servercfgdir}"
-	if [[ $? == 0 ]]; then
-		echo -e  "OK"
-	else
-		echo -e  "FAIL"
-	fi
-fi
-
+mkdir -pv "${servercfgdir}"
 cd "${servercfgdir}"
-
-githuburl="https://raw.githubusercontent.com/dgibbs64/linuxgsm/master"
-
+githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}"
 if [ "${gamename}" == "7 Days To Die" ]; then
 	fn_defaultconfig
 elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then