From 4e5bb844b48a4c57351c164ea945c2af85d3417b Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Wed, 5 Jun 2019 17:48:52 +0530 Subject: [PATCH] install: Add option to skip dist-upgrade. --- scripts/lib/install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/lib/install b/scripts/lib/install index 3b1059eca9..99cd8c1868 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -32,6 +32,7 @@ while true; do --hostname) EXTERNAL_HOST="$2"; shift; shift;; --email) ZULIP_ADMINISTRATOR="$2"; shift; shift;; --no-init-db) NO_INIT_DB=1; shift;; + --no-dist-upgrade) NO_DIST_UPGRADE=1; shift;; --) shift; break;; esac done @@ -176,7 +177,12 @@ EOF exit 1 fi -apt-get -y dist-upgrade "${APT_OPTIONS[@]}" +# don't run dist-upgrade in one click apps to make the +# installation process more seamless. +if [ -z "$NO_DIST_UPGRADE" ]; then + apt-get -y dist-upgrade "${APT_OPTIONS[@]}" +fi + if ! apt-get install -y \ puppet git curl wget jq \ python python3 python-six python3-six crudini \