aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-21 09:50:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-21 09:50:46 -0300
commitdce9c6b35b92fd56c34df71bed1caa40af0604ec (patch)
tree85f5d8184c1e8c8b2855e48412320f14f9481898 /share/hydractl/provision
parentacf9da7a8f8c4d322a3748d56abcb788fd36b28f (diff)
downloadhydra-dce9c6b35b92fd56c34df71bed1caa40af0604ec.tar.gz
hydra-dce9c6b35b92fd56c34df71bed1caa40af0604ec.tar.bz2
Support for more provision config locations
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index e2ebbd9..7928e1b 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -116,6 +116,15 @@ if [ ! -z "$1" ]; then
if [ -f "$1" ]; then
echo "Using configuration from file $1..."
source "$1"
+ if [ -f "$1.conf" ]; then
+ echo "Using configuration from file $1.conf..."
+ source "$1.conf"
+ if [ -f "$HYDRA_FOLDER/config/provision/$1" ]; then
+ echo "Using configuration from $HYDRA_FOLDER/config/provision/$1..."
+ source "$1"
+ if [ -f "$HYDRA_FOLDER/config/provision/$1.conf" ]; then
+ echo "Using configuration from $HYDRA_FOLDER/config/provision/$1.conf..."
+ source "$1.conf"
else
echo "File not found: $1"
exit 1