From 5c901b809a2af5522a148002e6eba34002398b60 Mon Sep 17 00:00:00 2001 From: wb Date: Sat, 21 Mar 2015 11:14:25 -0600 Subject: [PATCH] ARMA 3 changes for config directory a bit of redonkulousness adaptation to allow for two config files for ARMA 3 --- functions/fn_install_config | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/functions/fn_install_config b/functions/fn_install_config index a48c58c0d..0a5e14d26 100644 --- a/functions/fn_install_config +++ b/functions/fn_install_config @@ -6,8 +6,8 @@ fn_arma3config(){ mkdir -pv "${servercfgdir}" -cp -v lgsm-default.server.cfg "${servercfgfullpath}" -cp -v lgsm-default.network.cfg "${networkcfgfullpath}" +mv -v lgsm-default.server.cfg "${servercfgfullpath}" +mv -v lgsm-default.network.cfg "${networkcfgfullpath}" sleep 1 echo "" } @@ -133,12 +133,17 @@ echo "" echo "Creating Configs" echo "=================================" sleep 1 -cd "${servercfgdir}" +if [ "${gamename}" == "ARMA 3" ]; then + cd "${systemdir}" +elif [ + cd "${servercfgdir}" ]; then + #statements if [ "${gamename}" == "7 Days To Die" ]; then fn_unity3dconfig elif [ "${gamename}" == "ARMA 3" ]; then - echo -e "downloading lgsm-default.cfg...\c" - wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Arma3/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq + echo -e "downloading lgsm-default.server.cfg & lgsm-default.network.cfg...\c" + wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Arma3/cfg/lgsm-default.server.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq + wget -N --no-check-certificate /dev/null https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Arma3/cfg/lgsm-default.network.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq sleep 1 fn_arma3config elif [ "${gamename}" == "Blade Symphony" ]; then @@ -245,4 +250,4 @@ elif [ "${gamename}" == "Unreal Tournament 2004" ]; then fn_unreal2config elif [ "${gamename}" == "Unreal Tournament 99" ]; then fn_ut99config -fi +fi \ No newline at end of file