In the previous code snippet I have included the latest FreeBSD build ID. Since the time of last post there was a new FreeBSD release (fixing brute-force manager issue). Now latest build ID is
a759259a6deeeb3977de8dc4387d275a9de8eaad
.
To get the latest version please use (and detect latest build ID automatically):
Code:
COMMIT=$(dig +short -t txt "freebsd-version.directadmin.com" | sed 's|.*commit=\([0-9a-f]*\).*|\1|')
FILE="directadmin_${COMMIT}_freebsd_amd64.tar.gz"
curl --location --progress-bar --connect-timeout 10 "https://download.directadmin.com/${FILE}" --output "/root/${FILE}" # downloads given directadmin build into /root dir
tar xzf "/root/${FILE}" -C /usr/local/directadmin # extracts downloaded package to /usr/local/directadmin
/usr/local/directadmin/directadmin permissions || true # runs post-upgrade permission fix step
/usr/local/directadmin/scripts/update.sh # runs other post upgrade fixes
service directadmin restart # restarts directadmin
Script snippet taken from
docs.
But please keep in mind DA on FreeBSD is EOL and the best thing you would be to actually migrate to Linux based server. This is just a rescue boat to keep DA running and buy some time for proper migration.