Browse Source

DNS-ISPConfig ISPC_Api_Insecure argument check fix

Viktor G 3 years ago
parent
commit
d32cedd7dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_ispconfig.sh

+ 1 - 1
dnsapi/dns_ispconfig.sh

@@ -32,7 +32,7 @@ dns_ispconfig_rm() {
 ####################  Private functions below ##################################
 
 _ISPC_credentials() {
-  if [ -z "${ISPC_User}" ] || [ -z "$ISPC_Password" ] || [ -z "${ISPC_Api}" ] || [ -z "${ISPC_Api_Insecure}" ]; then
+  if [ -z "${ISPC_User}" ] || [ -z "$ISPC_Password" ] || [ -z "${ISPC_Api}" ] || [ -n "${ISPC_Api_Insecure}" ]; then
     ISPC_User=""
     ISPC_Password=""
     ISPC_Api=""