osmith has uploaded this change for review.

View Change

redmine: fix auto-scan of repositories

While inspecting the running docker container I found that the script
already runs as redmine user. I had assumed that it runs as root
earlier. Running 'su' as redmine user fails, therefore it currently does
not run the fetch_changesets command.

Related: OS#6083
Change-Id: I195311b93868eb5fd73ad6e3c165d48f3b7b53ce
---
M redmine/docker-entrypoint-osmo.sh
1 file changed, 16 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/72/33572/1
diff --git a/redmine/docker-entrypoint-osmo.sh b/redmine/docker-entrypoint-osmo.sh
index aff8183..8206d29 100755
--- a/redmine/docker-entrypoint-osmo.sh
+++ b/redmine/docker-entrypoint-osmo.sh
@@ -7,7 +7,7 @@
sleep 10m
echo
echo "=== Fetching git repositories (OS#5331) ==="
- su redmine -c 'rails runner "Repository.fetch_changesets" -e production'
+ rails runner "Repository.fetch_changesets" -e production
echo
done &) &


To view, visit change 33572. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I195311b93868eb5fd73ad6e3c165d48f3b7b53ce
Gerrit-Change-Number: 33572
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-MessageType: newchange