mirror of https://github.com/zulip/zulip.git
install: Only install node on frontend hosts.
This commit is contained in:
parent
a69e690122
commit
efdfaaf5a2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue