| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/installer/apps/ |
Upload File : |
#!/bin/bash
if [ -f "include/startup.sh" ]; then
. include/startup.sh
elif [ -f "../include/startup.sh" ]; then
. ../include/startup.sh
fi
echo "Installing dependencies" | log
packages=(wget gcc g++ make flex bison openssl libssl-dev \
perl perl-base perl-modules libperl-dev libperl4-corelibs-perl \
libwww-perl libaio1 libaio-dev zlib1g zlib1g-dev libcap-dev cron \
bzip2 zip automake autoconf libtool cmake pkg-config python \
libdb-dev libsasl2-dev libncurses5 libncurses5-dev libsystemd-dev \
bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl curl libnuma-dev libnuma1)
installPackage "${packages[@]}" | log
waitOrStop 0 "Failed to install dependencies" | log
ufw allow 2222
hostnamectl set-hostname ${CWM_DOMAIN}
echo "Downloading and Installing DirectAdmin" | log
curlDownload https://www.directadmin.com/setup.sh
waitOrStop 0 "Failed to install DirectAdmin"
echo 1 > /root/.skip_get_license
bash setup.sh auto
echo "Updating admin password" | log
passwd admin << EOF
${ADMINPASSWORD}
${ADMINPASSWORD}
EOF
echo "Adding descriptions" | log
descriptionAppend "To start using DirectAdmin, purchase a license at https://www.directadmin.com/"
descriptionAppend "After purchasing and binding the license to ${CWM_DISPLAYED_ADDRESS}, run the following command:"
descriptionAppend "'/usr/local/directadmin/scripts/getLicense.sh auto' and DirectAdmin web UI will be available."
descriptionAppend "DirectAdmin web UI: http://${CWM_DOMAIN}:2222"
descriptionAppend "Username: Admin"
descriptionAppend "Password: ${ADMINPASSWORD}"
descriptionAppend " "
tagScript success
exit 0