aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-09 00:24:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-09 00:24:28 -0300
commit634fe3ef8462026301862748f396b95d38d54d4f (patch)
tree57d56e147f40929b6a02825afdfb275024f46458 /share/hydractl
parenta42c14787d3e6e75219df712a10c7f320fdf8927 (diff)
downloadhydra-634fe3ef8462026301862748f396b95d38d54d4f.tar.gz
hydra-634fe3ef8462026301862748f396b95d38d54d4f.tar.bz2
Fix backup-copy-sites
Diffstat (limited to 'share/hydractl')
-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