Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

install: Only install node on frontend hosts.

Alex Vandiverefdfaaf5a2d6
diff --git a/scripts/lib/install b/scripts/lib/install
index f2ed557baa2..5cbc6ed9362 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -403,8 +403,6 @@ if [ "$VIRTUALENV_NEEDED" = "yes" ]; then
"$ZULIP_PATH"/scripts/lib/create-production-venv "$ZULIP_PATH"
fi
-"$ZULIP_PATH"/scripts/lib/install-node
-
# Generate /etc/zulip/zulip.conf .
mkdir -p /etc/zulip
has_class() {
@@ -456,6 +454,8 @@ EOF
fi
if has_class "zulip::app_frontend_base"; then
+ "$ZULIP_PATH"/scripts/lib/install-node
+
if [ -z "$NO_OVERWRITE_SETTINGS" ] || ! [ -e "/etc/zulip/settings.py" ]; then
cp -a "$ZULIP_PATH"/zproject/prod_settings_template.py /etc/zulip/settings.py
if [ -n "$EXTERNAL_HOST" ]; then