Skip to content

Commit 9eb44a0

Browse files
committed
Small change at clamav start and log output.
1 parent 3917d42 commit 9eb44a0

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

install/hst-install-debian.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,10 +1235,9 @@ if [ "$clamd" = 'yes' ]; then
12351235
/lib/systemd/system/clamav-daemon.service
12361236
systemctl daemon-reload
12371237
fi
1238-
service clamav-daemon start
12391238
echo "Updating ClamAV..."
1240-
/usr/bin/freshclam > /dev/null 2>&1
1241-
service clamav-daemon restart
1239+
/usr/bin/freshclam > /dev/null 2>&1
1240+
service clamav-daemon start
12421241
check_result $? "clamav-daeom start failed"
12431242
fi
12441243

install/hst-install-ubuntu.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ fi
266266
# Check if apt-transport-https is installed
267267
if [ ! -e '/usr/lib/apt/methods/https' ]; then
268268
echo "Install missing apt-transport-https..."
269-
apt-get -y install apt-transport-https > /dev/null 2>&1
269+
apt-get -y install apt-transport-https > /dev/null 2>&1
270270
check_result $? "Can't install apt-transport-https"
271271
fi
272272

@@ -969,8 +969,8 @@ if [ "$apache" = 'yes' ]; then
969969
service apache2 start > /dev/null 2>&1
970970
check_result $? "apache2 start failed"
971971
else
972-
update-rc.d apache2 disable > /dev/null 2>&1
973-
service apache2 stop > /dev/null 2>&1
972+
update-rc.d apache2 disable > /dev/null 2>&1
973+
service apache2 stop > /dev/null 2>&1
974974
fi
975975

976976

@@ -1214,10 +1214,9 @@ if [ "$clamd" = 'yes' ]; then
12141214
gpasswd -a clamav Debian-exim > /dev/null 2>&1
12151215
cp -f $hestiacp/clamav/clamd.conf /etc/clamav/
12161216
update-rc.d clamav-daemon defaults
1217-
service clamav-daemon start
12181217
echo "Updating ClamAV..."
1219-
/usr/bin/freshclam > /dev/null 2>&1
1220-
service clamav-daemon restart
1218+
/usr/bin/freshclam > /dev/null 2>&1
1219+
service clamav-daemon start
12211220
check_result $? "clamav-daemon start failed"
12221221
fi
12231222

@@ -1330,7 +1329,7 @@ fi
13301329
# Special thanks to Pavel Galkin (https://skurudo.ru)
13311330
# https://github.com/skurudo/phpmyadmin-fixer
13321331

1333-
source $hestiacp/phpmyadmin/pma.sh > /dev/null 2>&1
1332+
source $hestiacp/phpmyadmin/pma.sh > /dev/null 2>&1
13341333

13351334

13361335
#----------------------------------------------------------#

0 commit comments

Comments
 (0)