Преглед изворни кода

added code to deal with old workshop vars

Daniel Gibbs пре 8 година
родитељ
комит
9352e14234
1 измењених фајлова са 23 додато и 0 уклоњено
  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