mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	fix bug for webroot mode. The token was missing.
This commit is contained in:
		
							parent
							
								
									79c2453a2c
								
							
						
					
					
						commit
						f074cb1036
					
				
							
								
								
									
										10
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								le.sh
									
									
									
									
									
								
							| @ -602,13 +602,17 @@ issue() { | |||||||
|           wellknown_path="$Le_Webroot/.well-known/acme-challenge" |           wellknown_path="$Le_Webroot/.well-known/acme-challenge" | ||||||
|         fi |         fi | ||||||
|         _debug wellknown_path "$wellknown_path" |         _debug wellknown_path "$wellknown_path" | ||||||
|          | 
 | ||||||
|  |         token="$(echo -e -n "$keyauthorization" | cut -d '.' -f 1)" | ||||||
|  |         _debug "writing token:$token to $wellknown_path/$token" | ||||||
|  | 
 | ||||||
|  |         mkdir -p "$wellknown_path" | ||||||
|  |         echo -n "$keyauthorization" > "$wellknown_path/$token" | ||||||
|  | 
 | ||||||
|         webroot_owner=$(stat -c '%U:%G' $Le_Webroot) |         webroot_owner=$(stat -c '%U:%G' $Le_Webroot) | ||||||
|         _debug "Changing owner/group of .well-known to $webroot_owner" |         _debug "Changing owner/group of .well-known to $webroot_owner" | ||||||
|         chown -R $webroot_owner "$Le_Webroot/.well-known" |         chown -R $webroot_owner "$Le_Webroot/.well-known" | ||||||
|          |          | ||||||
|         mkdir -p "$wellknown_path" |  | ||||||
|         echo -n "$keyauthorization" > "$wellknown_path/$token" |  | ||||||
|       fi |       fi | ||||||
|     fi |     fi | ||||||
|      |      | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user