mirror of
https://github.com/MailScanner/v5.git
synced 2024-09-20 15:26:08 +08:00
spec and install.sh update
none
This commit is contained in:
parent
19e7116890
commit
d8b69d76b6
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue