This commit is contained in:
tuend-work
2025-11-13 13:34:21 +07:00
parent 1cd3654f62
commit a75d061aba
3 changed files with 24 additions and 3 deletions

View File

@@ -84,3 +84,4 @@ webmail_link=roundcube
x_frame_options=sameorigin x_frame_options=sameorigin
zip=1 zip=1
zstd=1 zstd=1
check_referer=0

View File

@@ -501,7 +501,7 @@ if [ -s ${DA_SCRIPTS}/majordomo.sh ]; then
cd packages cd packages
tar xzf majordomo-*.tar.gz tar xzf majordomo-*.tar.gz
cd .. cd ..
#${DA_SCRIPTS}/majordomo.sh ${DA_SCRIPTS}/majordomo.sh
fi fi
echo "Chạy ${DA_SCRIPTS}/sysbk.sh" echo "Chạy ${DA_SCRIPTS}/sysbk.sh"

View File

@@ -712,8 +712,6 @@ else
APPEND_BETA="" APPEND_BETA=""
fi fi
$BIN_DIR/wget $WGET_OPTION -S --tries=5 --timeout=60 -O $DA_PATH/update.tar.gz $BIND_ADDRESS "https://git.wpcloud.vn/tuend/DirectAdmin-1.62.4/raw/branch/main/directadmin-1.62.4.tar.gz" $BIN_DIR/wget $WGET_OPTION -S --tries=5 --timeout=60 -O $DA_PATH/update.tar.gz $BIND_ADDRESS "https://git.wpcloud.vn/tuend/DirectAdmin-1.62.4/raw/branch/main/directadmin-1.62.4.tar.gz"
#$BIN_DIR/wget $WGET_OPTION -S --tries=5 --timeout=60 -O $DA_PATH/update.tar.gz $BIND_ADDRESS "https://git.wpcloud.vn/tuend/DirectAdmin-1.62.4/raw/branch/main/update.tar.gz"
if [ ! -e $DA_PATH/update.tar.gz ]; then if [ ! -e $DA_PATH/update.tar.gz ]; then
echo "Unable to download $DA_PATH/update.tar.gz"; echo "Unable to download $DA_PATH/update.tar.gz";
exit 3; exit 3;
@@ -841,6 +839,28 @@ fi
rm -f /usr/lib/sendmail rm -f /usr/lib/sendmail
ln -s ../sbin/sendmail /usr/lib/sendmail ln -s ../sbin/sendmail /usr/lib/sendmail
echo "-------------------------------------------------------------"
echo "UPDATE DIRECTADMIN LÊN BẢN MỚI... "
echo "-------------------------------------------------------------"
#$BIN_DIR/wget $WGET_OPTION -S --tries=5 --timeout=60 -O $DA_PATH/update.tar.gz $BIND_ADDRESS "https://git.wpcloud.vn/tuend/DirectAdmin-1.62.4/raw/branch/main/update.tar.gz"
if [ ! -e $DA_PATH/update.tar.gz ]; then
echo "Unable to download $DA_PATH/update.tar.gz";
exit 3;
fi
COUNT=`head -n 4 $DA_PATH/update.tar.gz | grep -c "* You are not allowed to run this program *"`;
if [ $COUNT -ne 0 ]; then
echo "";
echo "You are not authorized to download the update package with that client id and license id for this IP address. Please email sales@directadmin.com";
exit 4;
fi
echo "Giải nén file update.tar.gz..."
cd $DA_PATH;
tar xzf update.tar.gz
if [ -s /usr/local/directadmin/conf/directadmin.conf ]; then if [ -s /usr/local/directadmin/conf/directadmin.conf ]; then
echo "" echo ""
echo "Install Complete!"; echo "Install Complete!";