mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	fix issue for apache mode: fix case when the httpdconf is absolute path.
This commit is contained in:
		
							parent
							
								
									ed37361700
								
							
						
					
					
						commit
						d62ee94019
					
				
							
								
								
									
										9
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								le.sh
									
									
									
									
									
								
							| @ -723,9 +723,14 @@ _initpath() { | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| _apachePath() { | _apachePath() { | ||||||
|   httpdroot="$(apachectl -V | grep HTTPD_ROOT= | cut -d = -f 2 | tr -d '"' )" |  | ||||||
|   httpdconfname="$(apachectl -V | grep SERVER_CONFIG_FILE= | cut -d = -f 2 | tr -d '"' )" |   httpdconfname="$(apachectl -V | grep SERVER_CONFIG_FILE= | cut -d = -f 2 | tr -d '"' )" | ||||||
|   httpdconf="$httpdroot/$httpdconfname" |   if [[ "$httpdconfname" == '/'* ]] ; then | ||||||
|  |     httpdconf="$httpdconfname" | ||||||
|  |   else | ||||||
|  |     httpdroot="$(apachectl -V | grep HTTPD_ROOT= | cut -d = -f 2 | tr -d '"' )" | ||||||
|  |     httpdconf="$httpdroot/$httpdconfname" | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
|   if [ ! -f $httpdconf ] ; then |   if [ ! -f $httpdconf ] ; then | ||||||
|     _err "Apache Config file not found" $httpdconf |     _err "Apache Config file not found" $httpdconf | ||||||
|     return 1 |     return 1 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user