1
0
mirror of https://github.com/3proxy/3proxy.git synced 2025-04-12 15:33:11 +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:
Sertonix 2025-04-03 22:39:40 +00:00 committed by GitHub
parent 7aad0205e1
commit b19cd39e2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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; \