mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-29 17:37:41 +00:00 
			
		
		
		
	add warning for dns manual mode
This commit is contained in:
		
							parent
							
								
									d36440a06d
								
							
						
					
					
						commit
						309bec474f
					
				
							
								
								
									
										12
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								acme.sh
									
									
									
									
									
								
							| @ -100,6 +100,10 @@ _PREPARE_LINK="https://github.com/Neilpang/acme.sh/wiki/Install-preparations" | |||||||
| 
 | 
 | ||||||
| _STATELESS_WIKI="https://github.com/Neilpang/acme.sh/wiki/Stateless-Mode" | _STATELESS_WIKI="https://github.com/Neilpang/acme.sh/wiki/Stateless-Mode" | ||||||
| 
 | 
 | ||||||
|  | _DNS_MANUAL_ERR="The dns manual mode can not renew automatically, you must issue it again manually. You'd better use the other modes instead." | ||||||
|  | 
 | ||||||
|  | _DNS_MANUAL_WARN="It seems that you are using dns manual mode. please take care: $_DNS_MANUAL_ERR" | ||||||
|  | 
 | ||||||
| __INTERACTIVE="" | __INTERACTIVE="" | ||||||
| if [ -t 1 ]; then | if [ -t 1 ]; then | ||||||
|   __INTERACTIVE="1" |   __INTERACTIVE="1" | ||||||
| @ -3046,6 +3050,10 @@ _on_issue_err() { | |||||||
|     ) |     ) | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|  |   if [ "$IS_RENEW" = "1" ] && _hasfield "$Le_Webroot" "dns"; then | ||||||
|  |     _err "$_DNS_MANUAL_ERR" | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
|   if [ "$DEBUG" ] && [ "$DEBUG" -gt "0" ]; then |   if [ "$DEBUG" ] && [ "$DEBUG" -gt "0" ]; then | ||||||
|     _debug "$(_dlg_versions)" |     _debug "$(_dlg_versions)" | ||||||
|   fi |   fi | ||||||
| @ -3078,6 +3086,10 @@ _on_issue_success() { | |||||||
|     fi |     fi | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|  |   if _hasfield "$Le_Webroot" "dns"; then | ||||||
|  |     _err "$_DNS_MANUAL_WARN" | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| updateaccount() { | updateaccount() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user