From b52b1a5f9072d29d4cf2941a82305d4dac1a5abf Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 25 Dec 2024 23:37:15 +0900 Subject: [PATCH] dist/install: do not replace existing fsurc Signed-off-by: Ophestra --- dist/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/install.sh b/dist/install.sh index 71b00d0..c8149a2 100755 --- a/dist/install.sh +++ b/dist/install.sh @@ -7,4 +7,6 @@ install -vDm0755 "bin/finit" "${FORTIFY_INSTALL_PREFIX}/usr/libexec/fortify/fini install -vDm0755 "bin/fuserdb" "${FORTIFY_INSTALL_PREFIX}/usr/libexec/fortify/fuserdb" install -vDm6511 "bin/fsu" "${FORTIFY_INSTALL_PREFIX}/usr/bin/fsu" -install -vDm0400 "fsurc.default" "${FORTIFY_INSTALL_PREFIX}/etc/fsurc" +if [ ! -f "${FORTIFY_INSTALL_PREFIX}/etc/fsurc" ]; then + install -vDm0400 "fsurc.default" "${FORTIFY_INSTALL_PREFIX}/etc/fsurc" +fi