]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix backup-copy-sites
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Mar 2014 03:24:28 +0000 (00:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Mar 2014 03:24:28 +0000 (00:24 -0300)
share/hydractl/backup-copy-sites

index aebfcaf82bbc5355e9697f6441e55099d6aa5605..c6c9a1fd322c3fdc0f085b3d5acb940debbea147 100755 (executable)
 # 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