mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	Cleanup
This commit is contained in:
		
							parent
							
								
									78712245f7
								
							
						
					
					
						commit
						4a9f607d31
					
				| @ -5,7 +5,7 @@ | |||||||
| # | # | ||||||
| #Uno_User="UExxxxxx" | #Uno_User="UExxxxxx" | ||||||
| 
 | 
 | ||||||
| Uno_Api="https://api.unoeuro.com/1/$Uno_User/$Uno_Key" | Uno_Api="https://api.unoeuro.com/1" | ||||||
| 
 | 
 | ||||||
| ########  Public functions ##################### | ########  Public functions ##################### | ||||||
| 
 | 
 | ||||||
| @ -25,7 +25,7 @@ dns_unoeuro_add() { | |||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|   if ! _contains "$Uno_User" "UE"; then |   if ! _contains "$Uno_User" "UE"; then | ||||||
|     _err "It seems that the Uno_User=$Uno_User is not a valid email address." |     _err "It seems that the Uno_User=$Uno_User is not a valid username." | ||||||
|     _err "Please check and retry." |     _err "Please check and retry." | ||||||
|     return 1 |     return 1 | ||||||
|   fi |   fi | ||||||
| @ -94,6 +94,12 @@ dns_unoeuro_rm() { | |||||||
|     return 1 |     return 1 | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|  |   if ! _contains "$Uno_User" "UE"; then | ||||||
|  |     _err "It seems that the Uno_User=$Uno_User is not a valid username." | ||||||
|  |     _err "Please check and retry." | ||||||
|  |     return 1 | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
|   _debug "First detect the root zone" |   _debug "First detect the root zone" | ||||||
|   if ! _get_root "$fulldomain"; then |   if ! _get_root "$fulldomain"; then | ||||||
|     _err "invalid domain" |     _err "invalid domain" | ||||||
| @ -174,15 +180,13 @@ _uno_rest() { | |||||||
|   data="$3" |   data="$3" | ||||||
|   _debug "$ep" |   _debug "$ep" | ||||||
| 
 | 
 | ||||||
|   #export _H1="X-Auth-Email: $Uno_User" |  | ||||||
|   #export _H2="X-Auth-Key: $Uno_Key" |  | ||||||
|   export _H1="Content-Type: application/json" |   export _H1="Content-Type: application/json" | ||||||
| 
 | 
 | ||||||
|   if [ "$m" != "GET" ]; then |   if [ "$m" != "GET" ]; then | ||||||
|     _debug data "$data" |     _debug data "$data" | ||||||
|     response="$(_post "$data" "$Uno_Api/$ep" "" "$m")" |     response="$(_post "$data" "$Uno_Api/$Uno_User/$Uno_Key/$ep" "" "$m")" | ||||||
|   else |   else | ||||||
|     response="$(_get "$Uno_Api/$ep")" |     response="$(_get "$Uno_Api/$Uno_User/$Uno_Key/$ep")" | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|   if [ "$?" != "0" ]; then |   if [ "$?" != "0" ]; then | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user