From d8b69d76b65152967caa1996bcc71fd613966100 Mon Sep 17 00:00:00 2001 From: "Jerry.Benton" Date: Tue, 10 May 2016 20:43:07 -0400 Subject: [PATCH] spec and install.sh update none --- rhel/install.sh | 1 + rhel/mailscanner.spec | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/rhel/install.sh b/rhel/install.sh index 6af1d1e..d791717 100644 --- a/rhel/install.sh +++ b/rhel/install.sh @@ -203,6 +203,7 @@ if [ $EPEL == 1 ]; then else # user did not select EPEL so clamav is not available via yum + CAV=0 CAVOPTION= fi diff --git a/rhel/mailscanner.spec b/rhel/mailscanner.spec index 56ed6d7..448b91e 100644 --- a/rhel/mailscanner.spec +++ b/rhel/mailscanner.spec @@ -406,6 +406,15 @@ if [ -d '/usr/share/MailScanner/reports' -a ! -L '/etc/MailScanner/reports' ]; t ln -s /usr/share/MailScanner/reports /etc/MailScanner/reports fi +# remove init.d symlink if exists +if [ -L /etc/init.d/MailScanner ]; then + rm -f /etc/init.d/MailScanner +fi + +if [ -L /etc/init.d/mailscanner ]; then + rm -f /etc/init.d/mailscanner +fi + # create init.d symlink if [ -d '/etc/init.d' -a ! -L '/etc/init.d/mailscanner' -a -f '/usr/lib/MailScanner/init/ms-init' ]; then ln -s /usr/lib/MailScanner/init/ms-init /etc/init.d/mailscanner