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/upgrade: Allow new packages during `apt-get upgrade`.

Alex Vandivera35af3f38b5c
diff --git a/scripts/lib/install b/scripts/lib/install
index e28829d13c4..d3d1e1f9169 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -452,7 +452,7 @@ fi
"$ZULIP_PATH"/scripts/zulip-puppet-apply -f
if [ "$package_system" = apt ]; then
- apt-get -y upgrade
+ apt-get -y --with-new-pkgs upgrade
elif [ "$package_system" = yum ]; then
# No action is required because `yum update` already does upgrade.
:
diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2
index 1f01dc80a65..620621f36a1 100755
--- a/scripts/lib/upgrade-zulip-stage-2
+++ b/scripts/lib/upgrade-zulip-stage-2
@@ -228,7 +228,7 @@ if glob.glob("/usr/share/postgresql/*/extension/tsearch_extras.control"):
if not (minimal_change or args.skip_puppet):
logging.info("Upgrading system packages...")
subprocess.check_call(["apt-get", "update"])
- subprocess.check_call(["apt-get", "-y", "upgrade"])
+ subprocess.check_call(["apt-get", "-y", "--with-new-pkgs", "upgrade"])
# To bootstrap zulip-puppet-apply, we need to install the system yaml
# package; new installs get this, but old installs may not have it.
@@ -444,7 +444,7 @@ else:
shutdown_server()
logging.info("Applying Puppet changes...")
subprocess.check_call(["./scripts/zulip-puppet-apply", "--force"])
- subprocess.check_call(["apt-get", "-y", "upgrade"])
+ subprocess.check_call(["apt-get", "-y", "--with-new-pkgs", "upgrade"])
# Puppet may have reloaded supervisor, and in so doing started
# services; mark as potentially needing to stop the server.
IS_SERVER_UP = True
diff --git a/tools/setup/bootstrap-aws-installer b/tools/setup/bootstrap-aws-installer
index 8c1fedfcbc5..c864fdc82a3 100644
--- a/tools/setup/bootstrap-aws-installer
+++ b/tools/setup/bootstrap-aws-installer
@@ -36,7 +36,7 @@ export DEBIAN_FRONTEND=noninteractive
# Dependencies to install AWS CLI
(
apt-get -qy update
- apt-get -qy -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" upgrade
+ apt-get -qy --with-new-pkgs -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" upgrade
apt-get -qy install jq unzip curl
apt-get -qy autoclean
)