install/upgrade: Allow new packages during apt-get upgrade.

`postgresql-14.4` is a notable upgrade in the PostgreSQL series, as it
fixes potential database corruption from `CREATE INDEX CONCURRENTLY`
statements which are run while rows are modified[1].  However, it also
requires an upgrade from `libllvm9` to `libllvm10`, which means it is
not installed by a mere `apt-get upgrade`.

Add the `--with-new-pkgs` flag to all of the potentially relevant
`apt-get upgrade` calls, so that this (and similar) packages are
upgraded successfully.

[1]: https://www.postgresql.org/docs/release/14.4/
This commit is contained in:
Alex Vandiver
2022-06-20 14:29:19 -07:00
committed by Alex Vandiver
parent 95303a9929
commit a35af3f38b
3 changed files with 4 additions and 4 deletions

View File

@@ -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
)