]> git.proxmox.com Git - proxmox-acme.git/blobdiff - src/proxmox-acme
dns plugin: make data optional
[proxmox-acme.git] / src / proxmox-acme
index 566588f64386369ee2c6685c23420263ca95f2ca..29deba4d7548c1381cfb3d20728bb0777632614c 100644 (file)
@@ -617,7 +617,9 @@ setup() {
   plugin_conf_string=$4
   DEBUG=$5
 
-  _load_plugin_config
+  if [ -n "$plugin_conf_string" ]; then
+     _load_plugin_config
+  fi
 
   if ! . "$dns_plugin_path"; then
     _err "Load file $dns_plugin error."
@@ -644,7 +646,9 @@ teardown() {
   plugin_conf_string=$4
   DEBUG=$5
 
-  _load_plugin_config
+  if [ -n "$plugin_conf_string" ]; then
+     _load_plugin_config
+  fi
 
   if ! . "$dns_plugin_path"; then
     _err "Load file $dns_plugin error."