error in da-setup.sh da install script

raghav

Verified User
Joined
Sep 8, 2011
Messages
36
Hi,

When I tried to setup DA, at the end it shown following errors..

Code:
/root/da-setup.sh: line 1992: unexpected EOF while looking for matching `}'
/root/da-setup.sh: line 2011: syntax error: unexpected end of file


Here is the code present..
Code:
   1987                 #run it
   1988                 chmod 755 ${CSF_SH}
   1989                 ${CSF_SH} >> ${CSF_LOG} 2>&1
   1990         fi
   1991
   1992         ${BUILD) secuire_php
   1993 fi
   1994
   1995 rm -f /usr/lib/sendmail
   1996 ln -s ../sbin/sendmail /usr/lib/sendmail
   1997
   1998 if [ -s /usr/local/directadmin/conf/directadmin.conf ]; then
   1999         echo ""
   2000         echo "Install Complete!";
   2001         echo "If you cannot connect to the login URL, then it is likely that a firewall is blocking port 2222. Please see:"
   2002         echo "  https://help.directadmin.com/item.php?id=75"
   2003 fi
   2004
   2005 printf \\a
   2006 sleep 1
   2007 printf \\a
   2008 sleep 1
   2009 printf \\a
   2010

How to correct it?
 
My guess is you're using a 3rd party script.
The official DA setup script is just called setup.sh and not da-setup.sh as yours.

This is the end of the official one:
Code:
V_U_RBL_D=/etc/virtual/use_rbl_domains
if [ -f ${V_U_RBL_D} ] && [ ! -s ${V_U_RBL_D} ]; then
        rm -f ${V_U_RBL_D}
        ln -s domains ${V_U_RBL_D}
        chown -h mail:mail ${V_U_RBL_D}
fi

if [ -e /etc/aliases ]; then
        COUNT=`grep -c diradmin /etc/aliases`
        if [ "$COUNT" -eq 0 ]; then
                echo "diradmin: :blackhole:" >> /etc/aliases
        fi
fi

rm -f /usr/lib/sendmail
ln -s ../sbin/sendmail /usr/lib/sendmail
printf \\a
sleep 1
printf \\a
sleep 1
printf \\a

Please download the correct one:
https://www.directadmin.com/installguide.php
 
Did you check it?

I just downloaded ( wget https://www.directadmin.com/setup.sh ) and checked the script and it is exactly as I mentioned in my original post!

Note : da-setup.sh is nothing but a renamed setup.sh.. it is downloaded and renamed to da-setup.sh to know instantly what the setup file is for.
 
raghav said:
Did you check it?
I'm sorry. They must have changed it this week. I checked my setup.sh from a server I installed last saturday. I did not expect the installation script to have that many changes.

Edit the file and change line 1992:
Code:
        ${BUILD) secuire_php
to
Code:
        ${BUILD) secure_php

see if the error is gone then, because it can't build secuire_php that's a typo. ;)
 
No. Thats not fully correct( because the flower brackets did not match ).

This will be the correct one..

Code:
        ${BUILD} secure_php

But, I'm worried about DA devs pushing code that is not fully tested. :(

Hopefully it is a single time mistake.
 
I have installed a DA yesterday and have noticed the error that @raghav described.

It was the last two lines post-installation.
 
You need to open a ticket at tickets.directadmin.com and report the bug. Forum users will not be able to fix this for you, and you are not guaranteed that any DirectAdmin developers notice you forum post.
 
me too

Code:
Thank you for using DirectAdmin.  Should you have any questions, don't hesitate to contact us at [email protected]

## REPORT_END
Permissions set

System Security Tips:
  http://help.directadmin.com/item.php?id=247

./setup.sh: line 1992: unexpected EOF while looking for matching `}'
./setup.sh: line 2011: syntax error: unexpected end of file
 
You need to open a ticket at tickets.directadmin.com and report the bug. Forum users will not be able to fix this for you, and you are not guaranteed that any DirectAdmin developers notice you forum post.

I know it bro! (And, my solution shown above does fix the issue -tested).

But, we have internal licenses from our providers and NOT allowed to open a support ticket with DA..

If the DA devs dont monitor the forms(or allow some form of reporting), then it will be a big minus for there product. :(
 
Last edited:
No. Thats not fully correct( because the flower brackets did not match ).

This will be the correct one..

Code:
        ${BUILD} secure_php

But, I'm worried about DA devs pushing code that is not fully tested. :(

Hopefully it is a single time mistake.

I Agree with you
 
No. Thats not fully correct( because the flower brackets did not match ).
Good job. You're correct, in that case there were 2 typo's.

At that moment I already wrote to support and they fixed it so we're good again.
 
But, we have internal licenses from our providers and NOT allowed to open a support ticket with DA.
That you can't create a support ticket is not a big minus for the product. Internal licenses are supported via the hoster or datacenter you got them from.
So you send in a ticket there and they can send in a ticket to directadmin. That's the reason those company's get the internal licenses cheaper.

But as you can see there is also support via the forum so no worries.
 
Back
Top