setup.sh: Running DirectAdmin from the command line


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Install Issues
Top Level » DirectAdmin » Custom Scripting
Top Level » CustomBuild » CustomBuild 2.0

setup.sh: Running DirectAdmin from the command lineLast Modified: Jan 6, 2015, 6:13 am
As many people need to install DA frequently, they might have a usual set of options that they want to use, and to automate this process.  The setup.sh does allow for this.

A few variables, you might need:

Client ID:
License ID:
Hostname:
IP:
Ethernet Device:
Options.conf URL:
CustomBuild version:


A sample call for the setup.sh, is to first specify the CustomBuild version, then pass all arguments to the setup.sh, eg:

cd /root
echo 2.0 > /root/.custombuild
wget -O setup.sh http://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh 1234 56789 server.host.com eth0 1.2.3.4


If you don't want the default settings for custombuild, set the options.conf as desired, before running the setup.sh.
Let's say you have your custom options.conf stored at some URL, then you could do this before the setup.sh is run:

mkdir -p /usr/local/directadmin/custombuild
wget -O /usr/local/directadmin/custombuild/options.conf http://yourdomain.com/options.conf

and that way, when the setup.sh runs custombuild, it will use your settings, without any changes.

Related thread.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST