aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/provision3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/hydra/provision b/share/hydra/provision
index a025a8e..9aa2dba 100755
--- a/share/hydra/provision
+++ b/share/hydra/provision
@@ -24,6 +24,7 @@ hydra_config_load
NODE="$1"
CONFIG="$HYDRA_FOLDER/config/provision"
BASENAME="`basename $0`"
+DOMAIN="`cat $HYDRA_FOLDER/config/domain 2> /dev/null`"
# Ensure config folder exists
mkdir -p $CONFIG
@@ -36,6 +37,8 @@ if [ -z "$NODE" ]; then
else
if [ -e "$CONFIG/$NODE.conf" ]; then
hydractl $BASENAME $CONFIG/$NODE.conf
+ elif [ -e "$CONFIG/$NODE.$DOMAIN.conf" ]; then
+ hydractl $BASENAME $CONFIG/$NODE.$DOMAIN.conf
elif [ -e "$APP_BASE/share/config/provision/$NODE.conf" ]; then
hydractl $BASENAME $APP_BASE/share/config/provision/$NODE.conf
fi