fix: correct issue with clearing global domains

Also update tests
This commit is contained in:
Jose Diaz-Gonzalez committed 2019-05-23 06:18:22 -04:00
1 parent f80788147c
commit 919ba7ed93
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -170,7 +170,7 @@ domains_add_global() {
) -eq 0 ]]; then
dokku_log_info1 "Skipping: $DOMAIN already added"
else
sed -i -e "\$a\\$DOMAIN" "$GLOBAL_VHOST_PATH"
grep -qxF "$DOMAIN" "$GLOBAL_VHOST_PATH" || echo "$DOMAIN" >>"$GLOBAL_VHOST_PATH"
dokku_log_info1 "Added $DOMAIN"
fi
done