mirror of
https://github.com/3proxy/3proxy.git
synced 2025-08-15 11:57:07 +08:00
Fix race condition in make install on linux (#1129)
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
83e4f181b3
commit
d0ccaa07c3
@ -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