This script facilitates the updating process on DirectAdmin servers across various Linux distributions, including Debian, Ubuntu, RHEL, and CentOS.
- Grant execute permissions to the script:
chmod +x updatescript-universal-latest.sh
- Run the script:
./updatescript-universal-latest.sh
- The script detects the underlying OS and uses the appropriate package
manager (
apt-get
,yum
, ordnf
) accordingly. - It's highly recommended to test the script in a controlled environment (e.g., a virtual machine) before deploying it to a live server to ensure it behaves as expected.