This commit is contained in:
tuend-work
2025-11-12 23:24:15 +07:00
parent 525acd79e4
commit 0b28a76e20
954 changed files with 57051 additions and 49 deletions

View File

@@ -0,0 +1,27 @@
#!/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;