Update clamav before attempting to start clamav
This commit is contained in:
parent
379a74c5a3
commit
70bb5b27bb
1 changed files with 17 additions and 2 deletions
|
@ -5,11 +5,26 @@ then
|
||||||
rsync -a --progress -h --delete /var/www/htmlx/ /var/www/html/
|
rsync -a --progress -h --delete /var/www/htmlx/ /var/www/html/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo Starting cron...
|
||||||
|
|
||||||
crontab /etc/crontab
|
crontab /etc/crontab
|
||||||
service cron start
|
service cron start
|
||||||
service clamav-daemon start
|
echo Cron started
|
||||||
|
|
||||||
|
echo Updating ClamAV...
|
||||||
freshclam
|
freshclam
|
||||||
|
|
||||||
chown -Rv www-data:www-data /var/www/html
|
echo ClamAV Updated
|
||||||
|
echo Starting ClamAV
|
||||||
|
|
||||||
|
|
||||||
|
service clamav-daemon start
|
||||||
|
|
||||||
|
echo ClamAV Started
|
||||||
|
|
||||||
|
|
||||||
|
echo Ensuring all permissions are set correctly
|
||||||
|
chown -R www-data:www-data /var/www/html
|
||||||
|
|
||||||
|
echo Starting Apache
|
||||||
apache2ctl -D FOREGROUND
|
apache2ctl -D FOREGROUND
|
Loading…
Add table
Add a link
Reference in a new issue