1
0
镜像自地址 https://github.com/mail-in-a-box/mailinabox.git 已同步 2026-03-13 17:17:23 +01:00

Made script check to see if you are running as root

这个提交包含在:
ChiefGyk
2016-06-28 18:54:47 -04:00
父节点 b65dc98966
当前提交 9d814940f9

查看文件

@@ -1,6 +1,14 @@
# Add Blocklist.de malicious IP Addresses to Daily Crontab
# Also IPtables-persistent to save IP addresses upon reboot
# Added by Alon "ChiefGyk" Ganon
# Are we running as root?
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root. Please re-run like this:"
echo
echo "sudo $0"
echo
exit
fi
cp sync-fail2ban /etc/cron.daily/sync-fail2ban
chmod a+x /etc/cron.daily/sync-fail2ban
time /etc/cron.daily/sync-fail2ban