30 lines
No EOL
466 B
Bash
30 lines
No EOL
466 B
Bash
#!/bin/bash
|
|
|
|
if [ -f /var/www/html/.fresh ]
|
|
then
|
|
rsync -a --progress -h --delete /var/www/htmlx/ /var/www/html/
|
|
fi
|
|
|
|
echo Starting cron...
|
|
|
|
crontab /etc/crontab
|
|
service cron start
|
|
echo Cron started
|
|
|
|
echo Updating ClamAV...
|
|
freshclam
|
|
|
|
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 |