install: Only install node on frontend hosts.

This commit is contained in:
Alex Vandiver 2024-04-04 20:33:06 +00:00 committed by Tim Abbott
parent a69e690122
commit efdfaaf5a2
1 changed files with 2 additions and 2 deletions

View File

@ -403,8 +403,6 @@ if [ "$VIRTUALENV_NEEDED" = "yes" ]; then
"$ZULIP_PATH"/scripts/lib/create-production-venv "$ZULIP_PATH" "$ZULIP_PATH"/scripts/lib/create-production-venv "$ZULIP_PATH"
fi fi
"$ZULIP_PATH"/scripts/lib/install-node
# Generate /etc/zulip/zulip.conf . # Generate /etc/zulip/zulip.conf .
mkdir -p /etc/zulip mkdir -p /etc/zulip
has_class() { has_class() {
@ -456,6 +454,8 @@ EOF
fi fi
if has_class "zulip::app_frontend_base"; then 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 if [ -z "$NO_OVERWRITE_SETTINGS" ] || ! [ -e "/etc/zulip/settings.py" ]; then
cp -a "$ZULIP_PATH"/zproject/prod_settings_template.py /etc/zulip/settings.py cp -a "$ZULIP_PATH"/zproject/prod_settings_template.py /etc/zulip/settings.py
if [ -n "$EXTERNAL_HOST" ]; then if [ -n "$EXTERNAL_HOST" ]; then