Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
install: $ZULIP_ADMINISTRATOR may be unset for non-frontend hosts.
Alex Vandiver81644f110ead
diff --git a/scripts/lib/install b/scripts/lib/installindex d55856bc76a..e76345a13f9 100755--- a/scripts/lib/install+++ b/scripts/lib/install@@ -524,11 +524,13 @@ if has_class "zulip::app_frontend_base"; thenfi# Set up a basic .gitconfig for the 'zulip' user-(- cd / # Make sure the current working directory is readable by zulip- su zulip -c "git config --global user.email $ZULIP_ADMINISTRATOR"- su zulip -c "git config --global user.name 'Zulip Server ($EXTERNAL_HOST)'"-)+if [ -n "$ZULIP_ADMINISTRATOR" ]; then+ (+ cd / # Make sure the current working directory is readable by zulip+ su zulip -c "git config --global user.email $ZULIP_ADMINISTRATOR"+ su zulip -c "git config --global user.name 'Zulip Server ($EXTERNAL_HOST)'"+ )+fiif [ -n "$NO_INIT_DB" ]; thenset +x