From 5b3b9a990a1fd474f0fe44b7e56aefccd7d1e30d Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 20 Aug 2025 14:23:15 +0000 Subject: [PATCH] docs: Split the sudo command from the installer. Otherwise, users pasting the whole block into their console will have the experience of it appearing to do nothing -- running the installer will only happen _after_ they exit the `sudo` shell. Split the blocks into two sections, so they will be copy/pasted separately, and thus the installer will properly be run _inside_ the sudo shell. --- docs/production/install.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/production/install.md b/docs/production/install.md index 862870b726..3bdc515f01 100644 --- a/docs/production/install.md +++ b/docs/production/install.md @@ -56,11 +56,17 @@ tarballs](https://download.zulip.com/server/SHA256SUMS.txt). ## Step 2: Install Zulip -To set up Zulip with the most common configuration, run the installer as -follows: +To set up Zulip with the most common configuration, first become the +`root` user, if you are not already: + +```bash +[ "$(whoami)" != "root" ] && sudo -s +``` + +Then, run the installer, providing your email address and the public +hostname that users will be able to access your server with: ```bash -sudo -s # If not already root ./zulip-server-*/scripts/setup/install --push-notifications --certbot \ --email=YOUR_EMAIL --hostname=YOUR_HOSTNAME ```