Explorar el Código

fix(legacy): add service name to core_legacy.sh

Daniel Gibbs hace 6 años
padre
commit
fb69bafcd6
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      lgsm/functions/core_legacy.sh

+ 4 - 0
lgsm/functions/core_legacy.sh

@@ -41,6 +41,10 @@ if [ -z "${alertlog}" ]; then
 	alertlog="${emaillog}"
 fi
 
+if [ -z "${servicename}" ]; then
+	servicename="${selfname}"
+fi
+
 # Alternations to workshop variables.
 if [ -z "${wsapikey}" ]; then
 	if [ "${workshopauth}" ]; then