mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	fixes on dnsapi/dns_kinghost.sh and dnsapi/README.md
This commit is contained in:
		
							parent
							
								
									e8fd373e6c
								
							
						
					
					
						commit
						86ef6e6987
					
				| @ -792,7 +792,7 @@ The `DA_Api` and `DA_Api_Insecure` will be saved in `~/.acme.sh/account.conf` an | |||||||
| API access must be enabled at https://painel.kinghost.com.br/painel.api.php | API access must be enabled at https://painel.kinghost.com.br/painel.api.php | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| export KINGHOST_username="yourusername" | export KINGHOST_Username="yourusername" | ||||||
| export KINGHOST_Password="yourpassword" | export KINGHOST_Password="yourpassword" | ||||||
| acme.sh --issue --dns dns_kinghost -d example.com -d *.example.com | acme.sh --issue --dns dns_kinghost -d example.com -d *.example.com | ||||||
| ``` | ``` | ||||||
|  | |||||||
| @ -31,8 +31,8 @@ dns_kinghost_add() { | |||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|   #save the credentials to the account conf file. |   #save the credentials to the account conf file. | ||||||
|   _saveaccountconf_mutable KINGHOST_Username  "$KINGHOST_Username" |  _saveaccountconf_mutable KINGHOST_Username  "$KINGHOST_Username" | ||||||
|   _saveaccountconf_mutable KINGHOST_Password  "$KINGHOST_Password" |  _saveaccountconf_mutable KINGHOST_Password  "$KINGHOST_Password" | ||||||
| 
 | 
 | ||||||
|   _debug "Getting txt records" |   _debug "Getting txt records" | ||||||
|   _kinghost_rest GET "dns" "name=$fulldomain&content=$txtvalue" |   _kinghost_rest GET "dns" "name=$fulldomain&content=$txtvalue" | ||||||
| @ -52,7 +52,7 @@ dns_kinghost_add() { | |||||||
|     return 1 |     return 1 | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|   return 0; |   return 0 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # Usage: fulldomain txtvalue | # Usage: fulldomain txtvalue | ||||||
| @ -63,7 +63,7 @@ dns_kinghost_rm() { | |||||||
| 
 | 
 | ||||||
|   KINGHOST_Password="${KINGHOST_Password:-$(_readaccountconf_mutable KINGHOST_Password)}" |   KINGHOST_Password="${KINGHOST_Password:-$(_readaccountconf_mutable KINGHOST_Password)}" | ||||||
|   KINGHOST_Username="${KINGHOST_Username:-$(_readaccountconf_mutable KINGHOST_Username)}" |   KINGHOST_Username="${KINGHOST_Username:-$(_readaccountconf_mutable KINGHOST_Username)}" | ||||||
|     if [ -z "$KINGHOST_Password" ] || [ -z "$KINGHOST_Username" ]; then |   if [ -z "$KINGHOST_Password" ] || [ -z "$KINGHOST_Username" ]; then | ||||||
|     KINGHOST_Password="" |     KINGHOST_Password="" | ||||||
|     KINGHOST_Username="" |     KINGHOST_Username="" | ||||||
|     _err "You don't specify KingHost api key and email yet." |     _err "You don't specify KingHost api key and email yet." | ||||||
| @ -89,7 +89,7 @@ dns_kinghost_rm() { | |||||||
|     return 1 |     return 1 | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|   return 0; |   return 0 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ####################  Private functions below ################################## | ####################  Private functions below ################################## | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user