aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/backup-copy-sites6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/hydractl/backup-copy-sites b/share/hydractl/backup-copy-sites
index aebfcaf..c6c9a1f 100755
--- a/share/hydractl/backup-copy-sites
+++ b/share/hydractl/backup-copy-sites
@@ -16,11 +16,15 @@
# License along with this program. If not, see
# <http://www.gnu.org/licenses/>.
+# Load.
+source $APP_BASE/lib/hydra/functions || exit 1
+hydra_config_load
+
# Basic parameters.
SERVER="$1"
# Syntax check.
-if [ -z "$SITE" ]; then
+if [ -z "$SERVER" ]; then
hydra_action_usage
exit 1
fi