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

Ensure init nulldb with utf8

Oliver Güntherebecad5d2b41
diff --git a/docker/prod/setup/postinstall-onprem.sh b/docker/prod/setup/postinstall-onprem.sh
index 277917033ba..af673a8010c 100755
--- a/docker/prod/setup/postinstall-onprem.sh
+++ b/docker/prod/setup/postinstall-onprem.sh
@@ -32,7 +32,7 @@ rm -rf /var/lib/postgresql/{$CURRENT_PGVERSION,$NEXT_PGVERSION}
# create schema_cache.yml and db/structure.sql
-su - postgres -c "$PGBIN/initdb -D /tmp/nulldb"
+su - postgres -c "$PGBIN/initdb -D /tmp/nulldb -E UTF8"
su - postgres -c "$PGBIN/pg_ctl -D /tmp/nulldb -l /dev/null -l /tmp/nulldb/log -w start"
# give some more time for DB to start