How safe upgrade DirectAdmin (CustomBuild versions.txt is getting old)

mambas

Verified User
Joined
Jan 26, 2015
Messages
5
Hello

We have a server, where we have a message:

Subject: CustomBuild versions.txt is getting old on ***
It appears as though your services have not been checked for updates in a while (221 days/254 days on other one).
Please check for udpates with CustomBuild, or the Custombuild plugin:
https://help.directadmin.com/item.php?id=696

I go to that link and see simple commands:
cd /usr/local/directadmin/custombuild
./build update
./build all d
./build rewrite_confs

All looking fine but last one worries me:
./build rewrite_confs

We have exim, apache, php, ssh services running with confs those were manually altered and tuned for our needs. If I upgrade with these commands, will all confs be rewritten with new ones and all our changes will go away? (meaning our server and client's apps are down)...

What is the best way to safely upgrade outdated modules/services? Any suggestions?
 
Hello,




The listed commands are safe enough. But I'd rather do:




Code:
cd /usr/local/directadmin/custombuild
./build update
./build update_versions




the command
Code:
./build rewrite_confs
is required if you want to update configs in case when templates changed.




All the commands might bring troubles to you in case if you edit configs directly ignoring built-in features:




- templates of Directadmin
- custom code sections for Apache, NGINX, PHP




To get versions updated regularly you need to install custombuild crontask:




Code:
./build set cron yes
./build set cron_frequency daily
./build cron
 
Alex, that worked well:

cd /usr/local/directadmin/custombuild
./build update
./build update_versions

Thanks again
 
Back
Top