We've prepared a simple script which makes updating Directadmin version from beta / stable channel easier. Upload it to your server and use it per your needs.
The "stable" version of DirectAdmin differs from "beta" in a number of included features, which have been added into the control panel since the last "stable" release. It's not that "beta" is less stable or less secure. It's only about features newly added. DirectAdmin developers might update "beta" version every day and even several times in a day.
cd /root/ wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh chmod 755 updateda.sh
./updateda.sh beta
./updateda.sh stable
The script will try and auto-detect UID and LID. If it fails then you will need to run the script with options --lid=1234 and --uid=567
./updateda.sh beta --lid=1234 --uid=567
or
./updateda.sh stable --lid=1234 --uid=567
where you will need to use
You can find License ID and Client ID on a page "Licensing/Updates" in Directadmin at admin level.
As of the version: 0.5-beta (Thu Jun 27 10:19:12 +07 2019) a new action save_os has been added. It will add os_override in directadmin.conf. Please note, a version of DirectAdmin v.1.57.2+ is required to support save_os action.
Use cases:
and so on.
In order to fix possible issues with MySQL/MariaDB packages you should install DirectAdmin compiled for CentOS 7. By default a version which matches a DirectAdmin license will be installed, i.e. CentOS 6.
Example of usage:
cd /root/ wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh chmod 755 updateda.sh
List supported OS:
./updateda.sh list_os
CentOS 7 can be found in a line with ES_7.0_64 with a code c9.
So we install DirectAdmin stable compiled for CentOS 7.x
./updateda.sh stable --os=c9
Add os_override into directadmin.conf with the following command:
./updateda.sh save_os --os=c9
The os_override option will tell DirectAdmin to download/install a selected version of the panel, ignoring OS version written in a license.
if a license is issued for another OS version
cd /root/ wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh -O updateda.sh chmod 755 updateda.sh ./updateda.sh save_os --os=c9 ./updateda.sh stable --os=c9
if a license is issued for another OS version
cd /root/ wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh -O updateda.sh chmod 755 updateda.sh ./updateda.sh save_os --os=e9 ./updateda.sh stable --os=e9
Good luck ;)
Related links: