]> gitweb.fluxo.info Git - hydra.git/commitdiff
Support for more provision config locations
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 21 Sep 2015 12:50:46 +0000 (09:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 21 Sep 2015 12:50:46 +0000 (09:50 -0300)
share/hydractl/provision

index e2ebbd9ecff9146548978c8d44f9e450828a7f82..7928e1b593911ea99c3e5b494faca84acb564937 100755 (executable)
@@ -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