- cht.sh stack : linux online cheatsheet. Usage : `cheat <command>`. Example for tar : `cheat tar` - ClamAV anti-virus with weekly cronjob to update signatures database - Internal function to add daily cronjobs - Additional comment to detect previous configuration tuning (MariaDB & Redis) - Domain/Subdomain detection based on public domain suffixes list - Increase Nginx & MariaDB systemd open_files limits - Cronjob to update Cloudflare IPs list
12 lines
280 B
Plaintext
12 lines
280 B
Plaintext
#!/usr/bin/env bash
|
|
# WordOps ClamAV freshclam script
|
|
# script path after installation /opt/freshcham.sh
|
|
|
|
if [ -x /etc/init.d/clamav-freshclam ]; then
|
|
{
|
|
/etc/init.d/clamav-freshclam stop
|
|
freshclam
|
|
/etc/init.d/clamav-freshclam start
|
|
} >> /var/log/wo/clamav.log 2>&1
|
|
fi
|