diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-21 09:50:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-21 09:50:46 -0300 |
commit | dce9c6b35b92fd56c34df71bed1caa40af0604ec (patch) | |
tree | 85f5d8184c1e8c8b2855e48412320f14f9481898 /share/hydractl/provision | |
parent | acf9da7a8f8c4d322a3748d56abcb788fd36b28f (diff) | |
download | hydra-dce9c6b35b92fd56c34df71bed1caa40af0604ec.tar.gz hydra-dce9c6b35b92fd56c34df71bed1caa40af0604ec.tar.bz2 |
Support for more provision config locations
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-x | share/hydractl/provision | 9 |
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 |