mirror of
				https://github.com/3proxy/3proxy.git
				synced 2025-11-04 15:52:39 +08:00 
			
		
		
		
	Fix race condition in make install on linux
Since INSTALL_CFG_DEST is a symlink we also need to make sure that the target always exists before installing anything to it.
Fixes f860ea9e54 Install chrooted configuration with make install on linux
			
			
This commit is contained in:
		
							parent
							
								
									7aad0205e1
								
							
						
					
					
						commit
						b19cd39e2d
					
				@ -103,7 +103,7 @@ install-chroot-dir:
 | 
			
		||||
	$(INSTALL_BIN) -d $(CHROOTDIR)/libexec
 | 
			
		||||
	chmod -R o-rwx $(CHROOTDIR)
 | 
			
		||||
 | 
			
		||||
install-etc-default-config:
 | 
			
		||||
install-etc-default-config: install-chroot-dir
 | 
			
		||||
	if [ ! -d $(INSTALL_CFG_DEST) ]; then \
 | 
			
		||||
	   ln -s $(CHROOTREL)/conf $(INSTALL_CFG_DEST); \
 | 
			
		||||
	   $(INSTALL_BIN) $(INSTALL_CFG) $(ETCDIR)/3proxy.cfg; \
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user