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:
Greg Price
2018-03-02 16:17:52 -08:00
parent eb7eef02e8
commit b1ad4e88d4

View File

@@ -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'