Script to update Directadmin from beta/stable channel

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,143
Location
GMT +7.00
I've prepared a simple script to update Directadmin from beta/stable channel per your needs:

1. Install it:

Code:
cd /root/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh
chmod 755 updateda.sh

2a. Run to install pre-release version:

Code:
./updateda.sh beta

2b. Run to install stable version:

Code:
./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:

Code:
./updateda.sh beta --lid=1234 --uid=567


or


Code:
./updateda.sh stable --lid=1234 --uid=567

where you will need to use


  • a real License ID instead of 1234
  • a real Client ID instead of 567

You can find them on a page "Licensing / Updates" in Directadmin at admin level.
 
Updated to the version: 0.5-beta (Thu Jun 27 10:19:12 +07 2019):

- A new action save_os is now added. It will add os_override in directadmin.conf

Version DirectAdmin v.1.57.2 is required to support save_os action.


Use case:

- CentOS 7 server is running
- License of Directadmin for CentOS 6 (or earlier) is given by a server provider

or

- Debian 9 server is running
- License of Directadmin for Debian 8 (or earlier) is given by a server provider

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:

Code:
cd /root/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh
chmod 755 updateda.sh

List supported OS
Code:
./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
Code:
./updateda.sh stable --os=c9

Add os_override into directadmin.conf with the following command:
Code:
./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.
 
Last edited:
Thanks for updating this with new life!

Works great on my CentOS to give me the latest DirectAdmin beta channel updates. When the control panel update button doesn't detect anything new after a very recent DA change, this quickly brings the latest version.
 
- Install DirectAdmin compiled for CentOS 7 (if a license is issued for another OS version):

Code:
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


- Install DirectAdmin compiled for Debian 9 (if a license is issued for another OS version):

Code:
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


- List supported OS

Code:
cd /root/
./updateda.sh list_os
 
I've prepared a simple script to update Directadmin from beta/stable channel per your needs:

1. Install it:

Code:
cd /root/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh
chmod 755 updateda.sh

2a. Run to install pre-release version:

Code:
./updateda.sh beta

2b. Run to install stable version:

Code:
./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:

Code:
./updateda.sh beta --lid=1234 --uid=567


or


Code:
./updateda.sh stable --lid=1234 --uid=567

where you will need to use


  • a real License ID instead of 1234
  • a real Client ID instead of 567

You can find them on a page "Licensing / Updates" in Directadmin at admin level.


wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/update.sh
--2019-11-12 23:20:52-- https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/update.sh
Resolving raw.githubusercontent.com... 151.101.112.133
Connecting to raw.githubusercontent.com|151.101.112.133|:443... connected.
ERROR: certificate common name `www.github.com' doesn't match requested host name `raw.githubusercontent.com'
.
To connect to raw.githubusercontent.com insecurely, use `--no-check-certificate'.


uname -r
2.6.32-042stab128.2

./directadmin b2000
./directadmin: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./directadmin)
./directadmin: /lib/libc.so.6: version `GLIBC_2.15' not found (required by ./directadmin)
./directadmin: /lib/libc.so.6: version `GLIBC_2.14' not found (required by ./directadmin)
./directadmin: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /lib/libssl.so.1.0.0)
./directadmin: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /lib/libcrypto.so.1.0.0)



debian-7.0-x86_64-DA-v3

after
cd /etc/
nano issue
Debian GNU/Linux 6.0



After writing that commands it dont want to work even as root. Please write me more information that You need. I am sure our cooperation will make a fix problem. By the way. I did send a email on directadmin emails, but no body did respond and no body did read a e-mail. Thank You for respondi
 
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/update.sh
--2019-11-12 23:20:52-- https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/update.sh
Resolving raw.githubusercontent.com... 151.101.112.133
Connecting to raw.githubusercontent.com|151.101.112.133|:443... connected.
ERROR: certificate common name `www.github.com' doesn't match requested host name `raw.githubusercontent.com'
.
To connect to raw.githubusercontent.com insecurely, use `--no-check-certificate'.


uname -r
2.6.32-042stab128.2

./directadmin b2000
./directadmin: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./directadmin)
./directadmin: /lib/libc.so.6: version `GLIBC_2.15' not found (required by ./directadmin)
./directadmin: /lib/libc.so.6: version `GLIBC_2.14' not found (required by ./directadmin)
./directadmin: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /lib/libssl.so.1.0.0)
./directadmin: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /lib/libcrypto.so.1.0.0)



debian-7.0-x86_64-DA-v3

after
cd /etc/
nano issue
Debian GNU/Linux 6.0



After writing that commands it dont want to work even as root. Please write me more information that You need. I am sure our cooperation will make a fix problem. By the way. I did send a email on directadmin emails, but no body did respond and no body did read a e-mail. Thank You for respondi

This is wrong: https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/update.sh

This is correct: https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh
 
Back
Top