add test for wildcard domain. don't match domain substring. closes #1614

This commit is contained in:
Michael Hobbs
2015-11-19 12:03:31 -05:00
parent 59912d43f1
commit 4b2a777425
2 changed files with 12 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ case "$1" in
exit 1
fi
if [[ $(grep --fixed-strings "$3" "$DOKKU_ROOT/$APP/VHOST" > /dev/null 2>&1; echo $?) -eq 0 ]]; then
if [[ $(egrep -w "^{$3}$" "$DOKKU_ROOT/$APP/VHOST" > /dev/null 2>&1; echo $?) -eq 0 ]]; then
echo "$3 is already defined for $APP"
exit 1
fi