z
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -11,7 +11,7 @@ AWSTATS_VER=7.7
|
|||||||
DA_SCRIPTS=/usr/local/directadmin/scripts
|
DA_SCRIPTS=/usr/local/directadmin/scripts
|
||||||
DA_CONF=/usr/local/directadmin/conf/directadmin.conf
|
DA_CONF=/usr/local/directadmin/conf/directadmin.conf
|
||||||
DA_TEMPLATE_CONF=/usr/local/directadmin/data/templates/directadmin.conf
|
DA_TEMPLATE_CONF=/usr/local/directadmin/data/templates/directadmin.conf
|
||||||
HTTPPATH=http://files.directadmin.com/services/all/awstats
|
HTTPPATH=http://da-mirror.wpcloud.vn/services/all/awstats
|
||||||
TARFILE=${DA_SCRIPTS}/packages/awstats-${AWSTATS_VER}.tar.gz
|
TARFILE=${DA_SCRIPTS}/packages/awstats-${AWSTATS_VER}.tar.gz
|
||||||
USR=/usr/local
|
USR=/usr/local
|
||||||
REALPATH=${USR}/awstats-${AWSTATS_VER}
|
REALPATH=${USR}/awstats-${AWSTATS_VER}
|
||||||
@@ -59,7 +59,7 @@ chmod -R 755 ${REALPATH}
|
|||||||
#patch the url bug: this is ni the 7.3 tar.gz file, so no need to patch. Creates a patch rej file.
|
#patch the url bug: this is ni the 7.3 tar.gz file, so no need to patch. Creates a patch rej file.
|
||||||
#echo "Patching awstats_buildstaticpages.pl to fix url bug...";
|
#echo "Patching awstats_buildstaticpages.pl to fix url bug...";
|
||||||
#cd ${REALPATH}/tools
|
#cd ${REALPATH}/tools
|
||||||
#wget -O awstats_url.patch http://files.directadmin.com/services/custombuild/patches/awstats_url.patch
|
#wget -O awstats_url.patch http://da-mirror.wpcloud.vn/services/custombuild/patches/awstats_url.patch
|
||||||
#if [ ! -s awstats_url.patch ]; then
|
#if [ ! -s awstats_url.patch ]; then
|
||||||
# echo "Error with awstats_url.patch. File is missing or empty";
|
# echo "Error with awstats_url.patch. File is missing or empty";
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
OS=`uname`
|
OS=`uname`
|
||||||
|
|
||||||
SERVER=http://files.directadmin.com/services/all/majordomo
|
SERVER=http://da-mirror.wpcloud.vn/services/all/majordomo
|
||||||
ADDPATCHES=1
|
ADDPATCHES=1
|
||||||
|
|
||||||
SOURCEPATH="/usr/local/directadmin/scripts/packages/majordomo-1.94.5"
|
SOURCEPATH="/usr/local/directadmin/scripts/packages/majordomo-1.94.5"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ CWD=`pwd`
|
|||||||
|
|
||||||
NAME=ncftp
|
NAME=ncftp
|
||||||
VERSION=3.2.6
|
VERSION=3.2.6
|
||||||
PRIMARY=http://files.directadmin.com/services
|
PRIMARY=http://da-mirror.wpcloud.vn/services
|
||||||
SECONDARY=http://files3.directadmin.com/services
|
SECONDARY=http://files3.directadmin.com/services
|
||||||
SAVE=/usr/local/directadmin/scripts/packages
|
SAVE=/usr/local/directadmin/scripts/packages
|
||||||
FILE=${NAME}-${VERSION}-src.tar.gz
|
FILE=${NAME}-${VERSION}-src.tar.gz
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
CWD=`pwd`
|
CWD=`pwd`
|
||||||
|
|
||||||
NAME=sysbk
|
NAME=sysbk
|
||||||
PRIMARY=http://files.directadmin.com/services
|
PRIMARY=http://da-mirror.wpcloud.vn/services
|
||||||
SECONDARY=http://files3.directadmin.com/services
|
SECONDARY=http://files3.directadmin.com/services
|
||||||
SAVE=/usr/local/directadmin/scripts/packages
|
SAVE=/usr/local/directadmin/scripts/packages
|
||||||
FILE=${NAME}.tar.gz
|
FILE=${NAME}.tar.gz
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ if [ "$1" = "beta" ] || [ "$2" = "beta" ]; then
|
|||||||
DOWNLOAD_BETA=true
|
DOWNLOAD_BETA=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FTP_HOST=files.directadmin.com
|
FTP_HOST=da-mirror.wpcloud.vn
|
||||||
|
|
||||||
WGET_OPTION="--no-dns-cache";
|
WGET_OPTION="--no-dns-cache";
|
||||||
COUNT=`$WGET_PATH --help | grep -c no-check-certificate`
|
COUNT=`$WGET_PATH --help | grep -c no-check-certificate`
|
||||||
|
|||||||
@@ -477,7 +477,7 @@ if [ "${USE_ALL_SETTINGS}" = "1" ]; then
|
|||||||
#OUTPUT as harden-symlinks-patch
|
#OUTPUT as harden-symlinks-patch
|
||||||
HARDEN_SYMLINKS_PATCH_SET="${YESNO_SET}"
|
HARDEN_SYMLINKS_PATCH_SET="${YESNO_SET}"
|
||||||
HARDEN_SYMLINKS_PATCH_DEF="yes"
|
HARDEN_SYMLINKS_PATCH_DEF="yes"
|
||||||
HARDEN_SYMLINKS_PATCH_DESC="Patches apache to include hardened symlinks patch. https://files.directadmin.com/services/custombuild/harden-symlinks-2.4.patch."
|
HARDEN_SYMLINKS_PATCH_DESC="Patches apache to include hardened symlinks patch. https://da-mirror.wpcloud.vn/services/custombuild/harden-symlinks-2.4.patch."
|
||||||
|
|
||||||
USE_HOSTNAME_FOR_ALIAS_SET="${YESNO_SET} auto"
|
USE_HOSTNAME_FOR_ALIAS_SET="${YESNO_SET} auto"
|
||||||
USE_HOSTNAME_FOR_ALIAS_DEF="no"
|
USE_HOSTNAME_FOR_ALIAS_DEF="no"
|
||||||
@@ -670,11 +670,11 @@ if [ "${USE_ALL_SETTINGS}" = "1" ]; then
|
|||||||
CLEAN_OLD_WEBAPPS_DEF="yes"
|
CLEAN_OLD_WEBAPPS_DEF="yes"
|
||||||
CLEAN_OLD_WEBAPPS_DESC="Removes old WEB application folders from /var/www/html. Takes effect when any WEB application is installed/updated."
|
CLEAN_OLD_WEBAPPS_DESC="Removes old WEB application folders from /var/www/html. Takes effect when any WEB application is installed/updated."
|
||||||
|
|
||||||
DOWNLOADSERVER_SET="files.directadmin.com"
|
DOWNLOADSERVER_SET="da-mirror.wpcloud.vn"
|
||||||
if [ -s ${WORKDIR}/servers.txt ]; then
|
if [ -s ${WORKDIR}/servers.txt ]; then
|
||||||
DOWNLOADSERVER_SET="files.directadmin.com `awk '{ printf "%s ", $0 }' ${WORKDIR}/servers.txt`"
|
DOWNLOADSERVER_SET="da-mirror.wpcloud.vn `awk '{ printf "%s ", $0 }' ${WORKDIR}/servers.txt`"
|
||||||
fi
|
fi
|
||||||
DOWNLOADSERVER_DEF="files.directadmin.com"
|
DOWNLOADSERVER_DEF="da-mirror.wpcloud.vn"
|
||||||
DOWNLOADSERVER_DESC="Sets which download server to use to download files needed by the CustomBuild script. Any other server than ${DOWNLOADSERVER_DEF} may take 24 hours for latest files to be synced, however they may have better speeds than ${DOWNLOADSERVER_DEF}."
|
DOWNLOADSERVER_DESC="Sets which download server to use to download files needed by the CustomBuild script. Any other server than ${DOWNLOADSERVER_DEF} may take 24 hours for latest files to be synced, however they may have better speeds than ${DOWNLOADSERVER_DEF}."
|
||||||
|
|
||||||
UNOFFICIAL_MIRRORS_SET="${YESNO_SET}"
|
UNOFFICIAL_MIRRORS_SET="${YESNO_SET}"
|
||||||
@@ -1610,11 +1610,11 @@ DOWNLOADSERVER_SCHEME=http
|
|||||||
if echo "${DOWNLOADSERVERS_HTTPS_LIST}" | grep -m1 -q " ${DOWNLOADSERVER_OPT} "; then
|
if echo "${DOWNLOADSERVERS_HTTPS_LIST}" | grep -m1 -q " ${DOWNLOADSERVER_OPT} "; then
|
||||||
DOWNLOADSERVER_SCHEME=https
|
DOWNLOADSERVER_SCHEME=https
|
||||||
fi
|
fi
|
||||||
WEBPATH=http://files.directadmin.com/services/custombuild
|
WEBPATH=http://da-mirror.wpcloud.vn/services/custombuild
|
||||||
WEBPATH_SERVICES=http://files.directadmin.com/services
|
WEBPATH_SERVICES=http://da-mirror.wpcloud.vn/services
|
||||||
WEBPATH_BACKUP_IP=files.directadmin.com
|
WEBPATH_BACKUP_IP=da-mirror.wpcloud.vn
|
||||||
WEBPATH_BACKUP=http://files.directadmin.com/services/custombuild
|
WEBPATH_BACKUP=http://da-mirror.wpcloud.vn/services/custombuild
|
||||||
WEBPATH_SERVICES_BACKUP=http://files.directadmin.com/services
|
WEBPATH_SERVICES_BACKUP=http://da-mirror.wpcloud.vn/services
|
||||||
WEBPATH_CL=https://repo.cloudlinux.com/cloudlinux/sources/da
|
WEBPATH_CL=https://repo.cloudlinux.com/cloudlinux/sources/da
|
||||||
WEBPATH_CWAF=https://waf.comodo.com
|
WEBPATH_CWAF=https://waf.comodo.com
|
||||||
WEBPATH_LITESPEED=https://www.litespeedtech.com/packages
|
WEBPATH_LITESPEED=https://www.litespeedtech.com/packages
|
||||||
@@ -2535,9 +2535,9 @@ getFile() {
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "${boldon}Too many failed attempts with ${DOWNLOADSERVER_OPT}. Will try a different server.${boldoff}"
|
echo "${boldon}Too many failed attempts with ${DOWNLOADSERVER_OPT}. Will try a different server.${boldoff}"
|
||||||
SET_DL=files.directadmin.com
|
SET_DL=da-mirror.wpcloud.vn
|
||||||
case "${DOWNLOADSERVER_OPT}" in
|
case "${DOWNLOADSERVER_OPT}" in
|
||||||
files.directadmin.com) SET_DL=${WEBPATH_BACKUP_IP}
|
da-mirror.wpcloud.vn) SET_DL=${WEBPATH_BACKUP_IP}
|
||||||
;;
|
;;
|
||||||
files1.directadmin.com) SET_DL=${WEBPATH_BACKUP_IP}
|
files1.directadmin.com) SET_DL=${WEBPATH_BACKUP_IP}
|
||||||
;;
|
;;
|
||||||
@@ -2562,8 +2562,8 @@ getFile() {
|
|||||||
else
|
else
|
||||||
DOWNLOADSERVER_SCHEME=http
|
DOWNLOADSERVER_SCHEME=http
|
||||||
fi
|
fi
|
||||||
WEBPATH=http://files.directadmin.com/services/custombuild
|
WEBPATH=http://da-mirror.wpcloud.vn/services/custombuild
|
||||||
WEBPATH_SERVICES=http://files.directadmin.com/services
|
WEBPATH_SERVICES=http://da-mirror.wpcloud.vn/services
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
@@ -25366,7 +25366,7 @@ set_fastest() {
|
|||||||
|
|
||||||
getFile servers.txt servers
|
getFile servers.txt servers
|
||||||
if [ "${UNOFFICIAL_MIRRORS_OPT}" = "yes" ]; then
|
if [ "${UNOFFICIAL_MIRRORS_OPT}" = "yes" ]; then
|
||||||
DOWNLOADSERVER_SET="files.directadmin.com `awk '{ printf "%s ", $0 }' ${WORKDIR}/servers.txt`"
|
DOWNLOADSERVER_SET="da-mirror.wpcloud.vn `awk '{ printf "%s ", $0 }' ${WORKDIR}/servers.txt`"
|
||||||
else
|
else
|
||||||
DOWNLOADSERVER_SET="${DOWNLOADSERVERS_OFFICIAL_LIST}"
|
DOWNLOADSERVER_SET="${DOWNLOADSERVERS_OFFICIAL_LIST}"
|
||||||
fi
|
fi
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user