|
|
@@ -1,11 +1,17 @@
|
|
|
#!/bin/bash
|
|
|
-# LGSM fn_install_serverfiles function
|
|
|
+# LGSM fn_check_steamuser function
|
|
|
# Author: Daniel Gibbs
|
|
|
# Website: http://gameservermanagers.com
|
|
|
-# Version: 160515
|
|
|
+# Version: 190515
|
|
|
|
|
|
-if [ -z "${steamuser}" ]; then
|
|
|
- fn_printwarningnl "SteamCMD user variable is not assigned in the main script! Resorting to anonymous login"
|
|
|
- steamuser="anonymous"
|
|
|
- steampass=""
|
|
|
+if [ -z "${steamuser}" ]||[ "${steamuser}" == "username" ];; then
|
|
|
+ fn_printwarningnl "Steam Login not set. Using anonymous login."
|
|
|
+ fn_scriptlog "Steam Login not set. Using anonymous login."
|
|
|
+ if [ "${steamuser}" == "username" ]; then
|
|
|
+ echo " * Change steamuser=\"username\" to a valid steam login."
|
|
|
+ fn_scriptlog "Change steamuser=\"username\" to a valid steam login."
|
|
|
+ fi
|
|
|
+ steamuser="anonymous"
|
|
|
+ steampass=""
|
|
|
+ sleep 2
|
|
|
fi
|