Explorar el Código

kamctl: option to enable kamctl test from shell variable

- set KAMCTL_TEST variable in shell
Daniel-Constantin Mierla hace 6 años
padre
commit
4968e89941
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      utils/kamctl/kamctl

+ 5 - 1
utils/kamctl/kamctl

@@ -11,7 +11,11 @@ PATH=$PATH:/usr/local/sbin/
 
 
 # for testing only, please don't enable this in production environments
 # for testing only, please don't enable this in production environments
 # as this introduce security risks
 # as this introduce security risks
-TEST="false"
+if [ -z "$KAMCTL_TEST" ]; then
+	TEST="false"
+else
+	TEST="true"
+fi
 
 
 ### include config files
 ### include config files