Browse Source

fix https://github.com/Neilpang/acme.sh/issues/1145#issuecomment-365863118

neilpang 7 years ago
parent
commit
abd0dad2bf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      dnsapi/dns_ovh.sh

+ 4 - 0
dnsapi/dns_ovh.sh

@@ -90,6 +90,10 @@ _initAuth() {
     return 1
   fi
 
+  if [ "$OVH_AK" != "$(_readaccountconf OVH_AK)" ]; then
+    _info "It seems that your ovh key is changed, let's clear consumer key first."
+    _clearaccountconf OVH_CK
+  fi
   _saveaccountconf_mutable OVH_AK "$OVH_AK"
   _saveaccountconf_mutable OVH_AS "$OVH_AS"