mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	add more debug info
This commit is contained in:
		
							parent
							
								
									1cbf416b10
								
							
						
					
					
						commit
						9d548d81ac
					
				
							
								
								
									
										32
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								acme.sh
									
									
									
									
									
								
							| @ -91,6 +91,30 @@ _printargs() { | |||||||
|   printf "\n" |   printf "\n" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | _dlg_versions() { | ||||||
|  |   echo "Diagnosis versions: " | ||||||
|  |   echo "openssl:" | ||||||
|  |   if _exists openssl ; then | ||||||
|  |     openssl version 2>&1 | ||||||
|  |   else | ||||||
|  |     echo "openssl doesn't exists." | ||||||
|  |   fi | ||||||
|  |    | ||||||
|  |   echo "apache:" | ||||||
|  |   if [ "$_APACHECTL" ] && _exists "$_APACHECTL" ; then | ||||||
|  |     _APACHECTL -V 2>&1 | ||||||
|  |   else | ||||||
|  |     echo "apache doesn't exists." | ||||||
|  |   fi | ||||||
|  |    | ||||||
|  |   echo "nc:" | ||||||
|  |   if _exists "nc" ; then | ||||||
|  |     nc -h 2>&1 | ||||||
|  |   else | ||||||
|  |     _debug "nc doesn't exists." | ||||||
|  |   fi | ||||||
|  | } | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| _log() { | _log() { | ||||||
|   [ -z "$LOG_FILE" ] && return |   [ -z "$LOG_FILE" ] && return | ||||||
| @ -2058,6 +2082,10 @@ _on_issue_err() { | |||||||
|     _err "See: $_DEBUG_WIKI" |     _err "See: $_DEBUG_WIKI" | ||||||
|   fi |   fi | ||||||
|    |    | ||||||
|  |   if [ "$DEBUG" ] && [ "$DEBUG" -gt "0" ] ; then | ||||||
|  |     _debug "$(_dlg_versions)" | ||||||
|  |   fi | ||||||
|  |    | ||||||
|   #run the post hook |   #run the post hook | ||||||
|   if [ "$Le_PostHook" ] ; then |   if [ "$Le_PostHook" ] ; then | ||||||
|     _info "Run post hook:'$Le_PostHook'" |     _info "Run post hook:'$Le_PostHook'" | ||||||
| @ -4358,7 +4386,9 @@ _process() { | |||||||
|      |      | ||||||
|     _processAccountConf |     _processAccountConf | ||||||
|   fi |   fi | ||||||
|   |    | ||||||
|  |   _debug2 LE_WORKING_DIR "$LE_WORKING_DIR" | ||||||
|  |    | ||||||
|   if [ "$DEBUG" ] ; then |   if [ "$DEBUG" ] ; then | ||||||
|     version |     version | ||||||
|   fi |   fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user