This commit is contained in:
tuend-work
2025-11-12 23:11:18 +07:00
parent 2e16431888
commit 525acd79e4
952 changed files with 0 additions and 57002 deletions

View File

@@ -1,36 +0,0 @@
#!/bin/sh
FILE=/usr/local/directadmin/update.tar.gz
if [ $# -lt 2 ]; then
echo "Usage:";
echo "$0 <cid> <lid> [<ip>]";
echo "";
echo "definitons:";
echo " cid: Client ID";
echo " lid: License ID";
echo " ip: your server IP (only needed when wrong ip is used to get the update.tar.gz file)";
echo "example: $0 999 9876";
exit 0;
fi
if [ $# = 3 ]; then
wget -S -O $FILE --bind-address=${3} https://www.directadmin.com/cgi-bin/daupdate?lid=${2}\&uid=${1}
else
wget -S -O $FILE https://www.directadmin.com/cgi-bin/daupdate?lid=${2}\&uid=${1}
fi
if [ $? -ne 0 ]
then
echo "Error downloading the update.tar.gz file";
exit 1;
fi
COUNT=`head -n 2 $FILE | grep -c "* You are not allowed to run this program *"`;
if [ $COUNT -ne 0 ]
then
echo "You are not authorized to download the update.tar.gz file with that client id and license id (and/or ip). Please email sales@directadmin.com";
exit 1;
fi