Rename DOKKU_CONTROLLER to DOKKU_HOST

This commit is contained in:
Jose Diaz-Gonzalez committed 2014-11-23 19:54:10 -05:00
1 parent 03e5248256
commit 2141435ce1
1 file changed
+5 -5
+5 -5
View File
@@ -1,4 +1,4 @@
if [ -z "$DOKKU_CONTROLLER" ] if [ -z "$DOKKU_HOST" ]
then then
function dokku { function dokku {
appname=$(git remote -v 2>/dev/null | grep dokku | head -n 1 | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/null) appname=$(git remote -v 2>/dev/null | grep dokku | head -n 1 | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/null)
@@ -9,9 +9,9 @@ then
if [ "$1" = "create" ] if [ "$1" = "create" ]
then then
appname=$(echo "print(elfs.GenName())" | lua -l elfs) appname=$(echo "print(elfs.GenName())" | lua -l elfs)
if git remote add dokku dokku@$DOKKU_CONTROLLER:$appname if git remote add dokku dokku@$DOKKU_HOST:$appname
then then
echo "-----> Dokku remote added at $DOKKU_CONTROLLER" echo "-----> Dokku remote added at $DOKKU_HOST"
echo "-----> Application name is $appname" echo "-----> Application name is $appname"
else else
echo "! Dokku remote not added! Do you already have a dokku remote?" echo "! Dokku remote not added! Do you already have a dokku remote?"
@@ -21,12 +21,12 @@ then
else else
if [ -z "$donotshift" ] if [ -z "$donotshift" ]
then then
ssh dokku@$DOKKU_CONTROLLER $* ssh dokku@$DOKKU_HOST $*
exit exit
fi fi
verb=$1 verb=$1
shift shift
ssh dokku@$DOKKU_CONTROLLER "$verb" "$appname" $@ ssh dokku@$DOKKU_HOST "$verb" "$appname" $@
fi fi
} }
fi fi