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

fixed permission problem breaking file uploads in docker image

Markus Kahlcdb95b9cb6d5
diff --git a/docker/supervisord b/docker/supervisord
index 0943e39e408..fd2a1ecf83e 100755
--- a/docker/supervisord
+++ b/docker/supervisord
@@ -69,7 +69,8 @@ migrate() {
pushd $APP_PATH >/dev/null
/etc/init.d/memcached start
bundle exec rake db:migrate
- bundle exec rake db:seed
+ # run seed as app user so created attachments (and folder) belong to app, not root
+ su app -c 'bundle exec rake db:seed'
/etc/init.d/memcached stop
popd >/dev/null
}