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