Files
DirectAdmin-1.62.4/directadmin-1.62.4/scripts/cron_deny.sh
tuend-work 0b28a76e20 ud
2025-11-12 23:24:15 +07:00

28 lines
295 B
Bash

#!/bin/sh
OS=`uname`
if [ "$OS" = "FreeBSD" ]; then
DENY=/var/cron/deny
else
DENY=/etc/cron.deny
fi
deny()
{
if [ -e $DENY ]; then
COUNT=`grep -c -e "^$1\$" $DENY`
if [ "$COUNT" -ne 0 ]; then
return;
fi
fi
echo $1 >> $DENY
chmod 640 $DENY
}
deny apache
deny webapps
exit 0;