mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-30 18:07:15 +00:00 
			
		
		
		
	Removed redundant backup in installcert when RealCACertPath == RealCertPath
This commit is contained in:
		
							parent
							
								
									d62ee94019
								
							
						
					
					
						commit
						78552b183b
					
				
							
								
								
									
										6
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								le.sh
									
									
									
									
									
								
							| @ -1349,13 +1349,13 @@ installcert() { | |||||||
|   fi |   fi | ||||||
|    |    | ||||||
|   if [ "$Le_RealCACertPath" ] ; then |   if [ "$Le_RealCACertPath" ] ; then | ||||||
|     if [ -f "$Le_RealCACertPath" ] ; then |  | ||||||
|       cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak |  | ||||||
|     fi |  | ||||||
|     if [ "$Le_RealCACertPath" == "$Le_RealCertPath" ] ; then |     if [ "$Le_RealCACertPath" == "$Le_RealCertPath" ] ; then | ||||||
|       echo "" >> "$Le_RealCACertPath" |       echo "" >> "$Le_RealCACertPath" | ||||||
|       cat "$CA_CERT_PATH" >> "$Le_RealCACertPath" |       cat "$CA_CERT_PATH" >> "$Le_RealCACertPath" | ||||||
|     else |     else | ||||||
|  |       if [ -f "$Le_RealCACertPath" ] ; then | ||||||
|  |         cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak | ||||||
|  |       fi | ||||||
|       cat "$CA_CERT_PATH" > "$Le_RealCACertPath" |       cat "$CA_CERT_PATH" > "$Le_RealCACertPath" | ||||||
|     fi |     fi | ||||||
|   fi |   fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user