From: Silvio Rhatto Date: Sun, 9 Mar 2014 03:24:28 +0000 (-0300) Subject: Fix backup-copy-sites X-Git-Tag: 0.2.2~76 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=634fe3ef8462026301862748f396b95d38d54d4f;p=hydra.git Fix backup-copy-sites --- 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 # . +# 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