diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-11-04 10:32:03 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-11-04 10:32:03 -0200 |
commit | 0e04d643c421d2dee295a817fa69fc878f0959c2 (patch) | |
tree | 541f2df5f114cda41dd913c502638ac24c302535 /share | |
parent | 601e055e2f718db7fef7deb3c9f5341861514ad5 (diff) | |
download | hydra-0e04d643c421d2dee295a817fa69fc878f0959c2.tar.gz hydra-0e04d643c421d2dee295a817fa69fc878f0959c2.tar.bz2 |
Provision: accept FQDN config name
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/provision | 3 |
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 |