aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-24 11:00:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-24 11:00:48 -0300
commitc7a05881240c850c6550e02faf9d8c0f8ff32f40 (patch)
treea62edd34e2171ebc3a00f373ffcde5b0af667fd0
parent36e1f611240686277303f5c6dc0a33bb3f889864 (diff)
downloadhydra-c7a05881240c850c6550e02faf9d8c0f8ff32f40.tar.gz
hydra-c7a05881240c850c6550e02faf9d8c0f8ff32f40.tar.bz2
Provision: fix config file sourcing
-rwxr-xr-xshare/hydractl/provision8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index d1a2cce..268e101 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -121,16 +121,16 @@ if [ ! -z "$1" ]; then
source "$1.conf"
elif [ -f "$HYDRA_FOLDER/config/provision/$1" ]; then
echo "Using configuration from $HYDRA_FOLDER/config/provision/$1..."
- source "$1"
+ source "$HYDRA_FOLDER/config/provision/$1"
elif [ -f "$HYDRA_FOLDER/config/provision/$1.conf" ]; then
echo "Using configuration from $HYDRA_FOLDER/config/provision/$1.conf..."
- source "$1.conf"
+ source "$HYDRA_FOLDER/config/provision/$1.conf"
elif [ -f "$APP_BASE/share/config/provision/$1" ]; then
echo "Using configuration from $APP_BASE/share/config/provision/$1..."
- source "$1"
+ source "$APP_BASE/share/config/provision/$1"
elif [ -f "$APP_BASE/share/config/provision/$1.conf" ]; then
echo "Using configuration from $APP_BASE/share/config/provision/$1.conf..."
- source "$1.conf"
+ source "$APP_BASE/share/config/provision/$1.conf"
else
echo "Profile not found: $1"
exit 1