Error while running custombuild

pchulpje_net

Verified User
Joined
Mar 3, 2008
Messages
19
Location
Krommenie
Hi,

while starting custombuild with ./build i get the following messages right after i press enter :

da2:/usr/local/directadmin/custombuild# ./build
./build: line 2002: syntax error near unexpected token `}'
./build: line 2002: `}'

I have downloaded and extracted custombuild 2.0 again from the location that was mentioned in this thread but the error still keeps coming. It was running fine a couple of day's ago on the server...

Hope someone is here to help..

Regards,
jeroen.
 
Same here.. Yesterday it worked fine.. seems like line 1954 has an empty if.

Problem with updating and also fresh install (reinstalled complete OS 2 times before figure out it was a custombuild issue)
Lets hope they fix it soon..
 
John has made a typo in CB 2.0 code, he will fix it soon. To fix that manually edit CB 2.0 and remove line 1954:
Code:
if

Save the file and that's it. John should post to this thread when the fix is uploaded to DA servers.
 
Thanks SM, figured that out myself, but how can i fix it in a fresh install?
If i fix it and run setup again it writes the CB again..
 
Hello,

Sorry about the typo!
Slipped past my tests somehow.

To get a fixed copy, type:
Code:
cd /usr/local/directadmin/custombuild
wget -O build http://files1.directadmin.com/services/custombuild/2.0/custombuild/build
which should get things back on track.

John
 
It seems to fail during a fresh install, as far as i can see the buildfile is in a tarball somewhere witch is downloaded during setup.


--2013-01-13 23:01:10-- http://files6.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
Resolving files6.directadmin.com... 62.148.181.110, 2001:16e8:1:4:62:148:181:110
Connecting to files6.directadmin.com|62.148.181.110|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 89876 (88K) [application/x-gzip]
Saving to: custombuild.tar.gz

100%[=======================================================================================================================================================================>] 89,876 --.-K/s in 0.007s

2013-01-13 23:01:10 (12.2 MB/s) - custombuild.tar.gz

./build: line 2002: syntax error near unexpected token `}'
./build: line 2002: `}'
 
Last edited:
It seems to fail during a fresh install, as far as i can see the buildfile is in a tarball somewhere witch is downloaded during setup.

It could be related to the fileserver. If you use any other fileserver than files1, then you should wait a bit till they get files from files1. E.g. http://files2.directadmin.com/services/custombuild/2.0/custombuild/build still has the old version. A "workaround" would be: downloadserver=files1.directadmin.com (in the options.conf file). This would force CustomBuild to use files1 for updates.
 
Back
Top