mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
install: Create zulip user only if required.
Otherwise, the useradd command will fail during the DigitalOcean 1-Click App installation because the install script is called twice during the whole process. Plus the Zulip install script is designed to be idempotent and this bug compromises that.
This commit is contained in:
committed by
Anders Kaseorg
parent
e3835554a7
commit
97403a09d0
@@ -331,7 +331,7 @@ has_class() {
|
||||
# files to exists; https://tickets.puppetlabs.com/browse/PUP-3907
|
||||
#
|
||||
# The home directory here should match what's declared in base.pp.
|
||||
useradd -m zulip --home-dir /home/zulip
|
||||
id -u zulip &>/dev/null || useradd -m zulip --home-dir /home/zulip
|
||||
if [ -n "$NO_OVERWRITE_SETTINGS" ] && [ -e "/etc/zulip/zulip.conf" ]; then
|
||||
"$ZULIP_PATH"/scripts/zulip-puppet-apply --force --noop \
|
||||
--write-catalog-summary \
|
||||
|
||||
Reference in New Issue
Block a user