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

Remove the COMMENT ON EXTENSION in the structure.sql

Cyril Rohr98dae7a9efff
diff --git a/docker/prod/setup/postinstall-common.sh b/docker/prod/setup/postinstall-common.sh
index 495639307c7..c8dd4f058f6 100755
--- a/docker/prod/setup/postinstall-common.sh
+++ b/docker/prod/setup/postinstall-common.sh
@@ -23,6 +23,9 @@ sleep 5
# dump schema
DATABASE_URL=postgres://assets:[email protected]/assets RAILS_ENV=production bundle exec rake db:migrate db:schema:dump db:schema:cache:dump
+# this line requires superuser rights, which is not always available and doesn't matter anyway
+sed -i '/^COMMENT ON EXTENSION/d' db/structure.sql
+
# precompile assets
DATABASE_URL=postgres://assets:[email protected]/assets RAILS_ENV=production bundle exec rake assets:precompile