aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
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