/go/load sets up a server from a copy of its settings stored on the GoAdmio configuration server (go.blackhost.com). It is typically used on a new or rebuilt server so that you don't have to type everything again. It identifies the server by its hostname and proves the request with a configuration password. It then downloads: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# First run on a server: pass the configuration password
/go/load 'your-config-password'
# Later runs: uses the saved password in /etc/config
/go/load
[!WARNING]
A password typed on the command line is saved in plain text in/var/log/go/load.logand can be seen in the process list and shell history. See Security.
Arguments
| Position | Argument | Required | Default | Notes |
|---|---|---|---|---|
| 1 | <password> |
No | The value in /etc/config |
The configuration password. It is turned into a hash before it is sent (see Password). |
| 2 | <hostname> |
No | The contents of /etc/hostname |
The name the settings are registered under. It must contain at least two dots, such as server1.example.com. |
There are no --option value pairs.
Examples
# First setup of a new server, passing the configuration password
/go/load 'your-config-password'
# Fetch the settings registered under a different hostname
/go/load 'your-config-password' server1.example.com
# Run the one-time import again without typing the password (uses /etc/config)
rm /usr/local/goadmio/db/load.db
/go/load
# Check that the crontab was installed
crontab -l -u root
Output
The command prints nothing when it works. It also prints nothing when it decides not to do anything.
| Situation | Result |
|---|---|
| Settings fetched | No output, exit status 0. |
No password argument and no /etc/config |
No output, exit status 1. |
| Hostname has fewer than two dots | No output, exit status 0. Nothing is fetched. |
| Configuration server unreachable | No output. Each request gives up after 5 seconds and isn’t retried. |
| Wrong password | No output. The server returns nothing, so nothing is changed. |
To confirm that something was imported, check the Config table or the files listed in What is fetched, for example:
sqlite3 /var/lib/sqlite/config.db "select AdminEmail,CronEmail from Config"
See the full reference at /go/load and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
