Explorar o código

added code to deal with old workshop vars

Daniel Gibbs %!s(int64=8) %!d(string=hai) anos
pai
achega
9352e14234
Modificáronse 1 ficheiros con 23 adicións e 0 borrados
  1. 23 0
      lgsm/functions/core_legacy.sh

+ 23 - 0
lgsm/functions/core_legacy.sh

@@ -39,4 +39,27 @@ fi
 
 if [ -z "${alertlog}" ]; then
 	alertlog="${emaillog}"
+fi
+
+# Alternations to workshop variables
+if [ -z "${wsapikey}" ]; then
+	if [ "${workshopauth}" ]; then
+		wsapikey="${workshopauth}"
+	elif [ "${authkey}" ]; then
+		wsapikey="${authkey}"
+	fi
+fi
+
+if [ -z "${wscollectionid}" ]; then
+	if [ "${workshopauth}" ]; then
+		wscollectionid="${ws_collection_id}"
+	elif [ "${authkey}" ]; then
+		wscollectionid="${workshopcollectionid}"
+	fi
+fi
+
+if [ -z "${wsstartmap}" ]; then
+	if [ "${ws_start_map}" ]; then
+		wscollectionid="${ws_start_map}"
+	fi
 fi