setup.sh: Running DirectAdmin from the command line


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


Top Level » DirectAdmin » Custom Scripting
Top Level » DirectAdmin » Installation

setup.sh: Running DirectAdmin from the command lineLast Modified: May 29, 2020, 3:40 pm
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:/options.conf
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 and php_extensions.conf as desired, before running the setup.sh.
Let's say you have your custom options.conf and php_extensions.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
wget -O /usr/local/directadmin/custombuild/php_extensions.conf http://yourdomain.com/php_extensions.conf

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

Related thread.


Custom Email and ns1/ns2

You can override the internal defaults by creating files before running the setup.sh

/root/.email.txt
/root/.ns1.txt
/root/.ns2.txt

With a one-line entry for those values, which will set them into the setup.txt via the setup.sh, instead of the default values that match the hostname.
 
Related Helpfiles
Standard Install
Command-Line / Script installl

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