custombuild doesn't detect changes

gate2vn

Verified User
Joined
Nov 9, 2004
Messages
503
Location
Oslo
Let's say, I changed in options.conf the webserver value, from apache to nginx_apache. Then, running /etc/cron.daily/custombuild. I expected that custombuild would detect that change, and compile nginx_apache. However, it did not. Is that something custombuild doesn't want to do, or did I miss any setting? Here are my custombuild and cronjob settings in options.conf:

#CustomBuild Settings
custombuild=2.0
autover=yes
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files14.directadmin.com

#Cronjob Settings
cron=yes
cron_frequency=daily
email=root
notifications=yes
da_autoupdate=yes
updates=yes
webapps_updates=yes

Please suggest.
Thanks.
 
I think you need to run ./build update after you make change to options.conf:
Code:
cd /usr/local/directadmin/custombuild
./build update

If that does not help, do a:
Code:
service directadmin restart

Edit: However I do not understand why you would want to let cron.daily/custombuild do a compile of nginx_apache when you first change to use that, it would be better to do it manually in custombuild the first time.
 
Thanks for answering :)

Actually, "./build update" exists inside /etc/cron.daily/custombuild script already. As I wrote above, I run /etc/cron.daily/custombuild after making changes to options.conf, and expected it can detect the changes in options.conf.

nginx_apache is just an example. Like in a new server, I usually install DA with default settings of CB2. Then updating options.conf, and run /etc/cron.daily/custombuild for finding out what need to be updated. However, it only detects new version of old setting, not new settings. Like default installation comes with Exim 4.85, custombuild cronjob can detect Exim 4.86, because CB has Exim at first already. But again, it could not detect the change from apache to nginx_apache for compiling nginx_apache automatically.
 
./build update opnly updates the version list. If you really want to update to new versions, then afterwards you also have to execute:
Code:
./build update_versions
otherwise nothing will be newly compiled.
 
[..]and run /etc/cron.daily/custombuild for finding out what need to be updated[..]

You do know you can do that in custombuild? This will show you what need to be updated:
Code:
./build versions

However sorry that I am not able to help regarding that custombuild cron job does not seem to work correctly.
 
Back
Top