mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
install: Switch some more uses of sudo to su.
Kind of unfortunate because the `sudo` interface for running a command is objectively better -- a list of arguments, rather than a string to be re-parsed by the shell. But some bare-bones machine images lack `sudo`, so this makes things a bit more portable.
This commit is contained in:
@@ -294,6 +294,6 @@ EOF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
sudo -u zulip /home/zulip/deployments/current/scripts/setup/initialize-database --quiet
|
||||
su zulip -c '/home/zulip/deployments/current/scripts/setup/initialize-database --quiet'
|
||||
|
||||
sudo -u zulip /home/zulip/deployments/current/manage.py generate_realm_creation_link
|
||||
su zulip -c '/home/zulip/deployments/current/manage.py generate_realm_creation_link'
|
||||
|
||||
Reference in New Issue
Block a user