mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
install: Run git config commands from a known readable cwd.
Fixes this error when running the installer from a directory that isn’t world-readable: + su zulip -c 'git config --global user.email anders@zulip.com' fatal: cannot come back to cwd: Permission denied Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9066fcac9a
commit
812ad52007
@@ -524,8 +524,11 @@ if has_class "zulip::app_frontend_base"; then
|
||||
fi
|
||||
|
||||
# Set up a basic .gitconfig for the 'zulip' user
|
||||
su zulip -c "git config --global user.email $ZULIP_ADMINISTRATOR"
|
||||
su zulip -c "git config --global user.name 'Zulip Server ($EXTERNAL_HOST)'"
|
||||
(
|
||||
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 "$NO_INIT_DB" ]; then
|
||||
set +x
|
||||
|
Reference in New Issue
Block a user