mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 10:27:22 +00:00 
			
		
		
		
	compatible with Proxmox, use cp instead of ln to update certs
This commit is contained in:
		
							parent
							
								
									7bc5e3bb5c
								
							
						
					
					
						commit
						93900a7a48
					
				
							
								
								
									
										12
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								le.sh
									
									
									
									
									
								
							| @ -643,25 +643,25 @@ issue() { | |||||||
|    |    | ||||||
|   if [ "$Le_RealCertPath" ] ; then |   if [ "$Le_RealCertPath" ] ; then | ||||||
|     if [ -f "$Le_RealCertPath" ] ; then |     if [ -f "$Le_RealCertPath" ] ; then | ||||||
|       rm -f "$Le_RealCertPath" |       cp -p "$Le_RealCertPath" "$Le_RealCertPath".bak | ||||||
|     fi |     fi | ||||||
|     ln -s "$CERT_PATH" "$Le_RealCertPath" |     cat "$CERT_PATH" > "$Le_RealCertPath" | ||||||
|   fi |   fi | ||||||
|    |    | ||||||
|    |    | ||||||
|   if [ "$Le_RealCACertPath" ] ; then |   if [ "$Le_RealCACertPath" ] ; then | ||||||
|     if [ -f "$Le_RealCACertPath" ] ; then |     if [ -f "$Le_RealCACertPath" ] ; then | ||||||
|       rm -f "$Le_RealCACertPath" |       cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak | ||||||
|     fi |     fi | ||||||
|     ln -s "$CA_CERT_PATH" "$Le_RealCACertPath" |     cat "$CA_CERT_PATH" > "$Le_RealCACertPath" | ||||||
|   fi   |   fi   | ||||||
| 
 | 
 | ||||||
|    |    | ||||||
|   if [ "$Le_RealKeyPath" ] ; then |   if [ "$Le_RealKeyPath" ] ; then | ||||||
|     if [ -f "$Le_RealKeyPath" ] ; then |     if [ -f "$Le_RealKeyPath" ] ; then | ||||||
|       rm -f "$Le_RealKeyPath" |       cp -p "$Le_RealKeyPath" "$Le_RealKeyPath".bak | ||||||
|     fi |     fi | ||||||
|     ln -s "$CERT_KEY_PATH" "$Le_RealKeyPath" |     cat "$CERT_KEY_PATH" > "$Le_RealKeyPath" | ||||||
|   fi |   fi | ||||||
|    |    | ||||||
|   if [ "$Le_ReloadCmd" ] ; then |   if [ "$Le_ReloadCmd" ] ; then | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user