mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-30 18:07:15 +00:00 
			
		
		
		
	Merge branch 'dev' of https://github.com/Neilpang/acme.sh into dev
This commit is contained in:
		
						commit
						df62150b5a
					
				| @ -72,7 +72,7 @@ _get_root() { | ||||
|       fi | ||||
| 
 | ||||
|       if _contains "$response" "<Name>$h.</Name>"; then | ||||
|         hostedzone="$(echo "$response" | _egrep_o "<HostedZone>.*<Name>$h.</Name>.*</HostedZone>")" | ||||
|         hostedzone="$(echo "$response" | sed 's/<HostedZone>/\n&/g' | _egrep_o "<HostedZone>.*<Name>$h.</Name>.*</HostedZone>")" | ||||
|         _debug hostedzone "$hostedzone" | ||||
|         if [ -z "$hostedzone" ]; then | ||||
|           _err "Error, can not get hostedzone." | ||||
|  | ||||
| @ -58,7 +58,15 @@ dns_cx_add() { | ||||
| #fulldomain | ||||
| dns_cx_rm() { | ||||
|   fulldomain=$1 | ||||
| 
 | ||||
|   REST_API="$CX_Api" | ||||
|   if _get_root "$fulldomain"; then | ||||
|     record_id="" | ||||
|     existing_records "$_domain" "$_sub_domain" | ||||
|     if ! [ "$record_id" = "" ]; then | ||||
|       _rest DELETE "record/$record_id/$_domain_id" "{}" | ||||
|       _info "Deleted record ${fulldomain}" | ||||
|     fi | ||||
|   fi | ||||
| } | ||||
| 
 | ||||
| #usage:  root  sub | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user