Use a normal conditional
This commit is contained in:
@@ -17,7 +17,7 @@ case "$1" in
|
|||||||
[[ ! -d "$DOKKU_ROOT/$2" ]] && echo "App $2 does not exist" && exit 1
|
[[ ! -d "$DOKKU_ROOT/$2" ]] && echo "App $2 does not exist" && exit 1
|
||||||
APP="$2"; VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
|
APP="$2"; VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
|
||||||
|
|
||||||
[ -f $VHOST_PATH ] || {
|
if [[ ! -f $VHOST_PATH ]]; then
|
||||||
echo "-----> Creating new $VHOST_PATH..."
|
echo "-----> Creating new $VHOST_PATH..."
|
||||||
if [[ -f "$DOKKU_ROOT/$APP/URL" ]]; then
|
if [[ -f "$DOKKU_ROOT/$APP/URL" ]]; then
|
||||||
cat "$DOKKU_ROOT/$APP/URL" > $VHOST_PATH
|
cat "$DOKKU_ROOT/$APP/URL" > $VHOST_PATH
|
||||||
@@ -35,7 +35,7 @@ case "$1" in
|
|||||||
|
|
||||||
echo $hostname > $VHOST_PATH
|
echo $hostname > $VHOST_PATH
|
||||||
fi
|
fi
|
||||||
}
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
domains:add)
|
domains:add)
|
||||||
|
|||||||
Reference in New Issue
Block a user