mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	fix for solaris
fix for solaris
This commit is contained in:
		
						commit
						e71887e1a8
					
				| @ -91,13 +91,13 @@ _get_root() { | |||||||
|       fi |       fi | ||||||
| 
 | 
 | ||||||
|       if _contains "$response" "<Name>$h.</Name>"; then |       if _contains "$response" "<Name>$h.</Name>"; then | ||||||
|         hostedzone="$(echo "$response" | sed 's/<HostedZone>/\n&/g' | _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" |         _debug hostedzone "$hostedzone" | ||||||
|         if [ -z "$hostedzone" ]; then |         if [ -z "$hostedzone" ]; then | ||||||
|           _err "Error, can not get hostedzone." |           _err "Error, can not get hostedzone." | ||||||
|           return 1 |           return 1 | ||||||
|         fi |         fi | ||||||
|         _domain_id=$(printf "%s\n" "$hostedzone" | _egrep_o "<Id>.*</Id>" | head -n 1 | _egrep_o ">.*<" | tr -d "<>") |         _domain_id=$(printf "%s\n" "$hostedzone" | _egrep_o "<Id>.*<.Id>" | head -n 1 | _egrep_o ">.*<" | tr -d "<>") | ||||||
|         if [ "$_domain_id" ]; then |         if [ "$_domain_id" ]; then | ||||||
|           _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) |           _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) | ||||||
|           _domain=$h |           _domain=$h | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user