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
Oliver Smith 2023-07-05 12:11:02 +02:00
parent 5227834974
commit 1a47384d81
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
sleep 10m
echo "=== Fetching git repositories (OS#5331) ==="
su redmine -c 'rails runner "Repository.fetch_changesets" -e production'
rails runner "Repository.fetch_changesets" -e production
done &) &