From 80bf7e32a498e22b356dc113f4ed16cad36d1ee0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 12 Jul 2016 11:46:49 -0700 Subject: [PATCH] Add option to not create a virtualenv. --- scripts/lib/install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/lib/install b/scripts/lib/install index f16a11ffc5..43fe50b8bb 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -13,6 +13,7 @@ DEPLOYMENT_TYPE="${DEPLOYMENT_TYPE:-voyager}" # zulip::voyager for an all-in-one system or zulip::dockervoyager for # Docker. Use e.g. zulip::app_frontend for a Zulip frontend server. PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::voyager}" +VIRTUALENV_NEEDED="${VIRTUALENV_NEEDED:-yes}" apt-get install -y lsb-release @@ -39,7 +40,9 @@ apt-get -y dist-upgrade $APT_OPTIONS apt-get install -y puppet git python python-six $ADDITIONAL_PACKAGES # Create and activate a virtualenv -/root/zulip/scripts/lib/create-production-venv /root/zulip/zulip-venv +if [ "$VIRTUALENV_NEEDED" = "yes" ]; then + /root/zulip/scripts/lib/create-production-venv /root/zulip/zulip-venv +fi # puppet apply mkdir -p /etc/zulip