From 70bb5b27bbb4e9fc636373f542e5d24e248b203e Mon Sep 17 00:00:00 2001 From: zontreck Date: Wed, 16 Jul 2025 22:20:33 -0700 Subject: [PATCH] Update clamav before attempting to start clamav --- NextCloud/entrypoint.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/NextCloud/entrypoint.sh b/NextCloud/entrypoint.sh index 8a3f7fc..e2980b7 100644 --- a/NextCloud/entrypoint.sh +++ b/NextCloud/entrypoint.sh @@ -5,11 +5,26 @@ then rsync -a --progress -h --delete /var/www/htmlx/ /var/www/html/ fi +echo Starting cron... + crontab /etc/crontab service cron start -service clamav-daemon start +echo Cron started +echo Updating ClamAV... 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 \ No newline at end of file