Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

apt-get update before attempting to install postfix

Dane59b31ca2b1c
diff --git a/docker/prod/setup/postinstall-onprem.sh b/docker/prod/setup/postinstall-onprem.sh
index bd4139fdde1..277917033ba 100755
--- a/docker/prod/setup/postinstall-onprem.sh
+++ b/docker/prod/setup/postinstall-onprem.sh
@@ -1,6 +1,7 @@
#!/bin/bash
set -eox pipefail
+apt-get update -qq
# postfix.postinst tries to generate a hostname based on /etc/resolv.conf, which
# gets copied in to the docker environment from the host system. On systems
@@ -14,7 +15,6 @@ if [ -f /run/.containerenv -o -f /.dockerenv ]; then
mv /bin/x-hostname /bin/hostname
fi
-apt-get update -qq
# embed all-in-one additional software
apt-get install -y \
postgresql-$CURRENT_PGVERSION \