Update vst-install-rhel.sh

Not entirely sure what this function is for but it's broken in the current installer. This fixes it. However, on my Centos 7 Install, spamassassin creates it's own /var/lib/spamassassin. So I'm not sure why the script has to make that directory when the yum package manager should take care of that on it's own.
This commit is contained in:
cmstew 2018-12-31 16:35:13 -07:00 committed by GitHub
commit b416ed2201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1177,9 +1177,7 @@ if [ "$spamd" = 'yes' ]; then
service spamassassin start service spamassassin start
check_result $? "spamassassin start failed" check_result $? "spamassassin start failed"
if [ "$release" -ge '7' ]; then if [ "$release" -ge '7' ]; then
groupadd -g 1001 spamd useradd spamd -s /sbin/nologin -d /var/lib/spamassassin
useradd -u 1001 -g spamd -s /sbin/nologin -d \
/var/lib/spamassassin spamd
mkdir /var/lib/spamassassin mkdir /var/lib/spamassassin
chown spamd:spamd /var/lib/spamassassin chown spamd:spamd /var/lib/spamassassin
fi fi