From b19cd39e2d48c13e007892dc7cba605bf8e9af94 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Thu, 3 Apr 2025 22:39:40 +0000 Subject: [PATCH] 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 f860ea9e5446 Install chrooted configuration with make install on linux --- Makefile.Linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.Linux b/Makefile.Linux index 962d551..a9f9d4e 100644 --- a/Makefile.Linux +++ b/Makefile.Linux @@ -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; \