summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-10 14:16:15 -0300
committerEuAndreh <eu@euandre.org>2025-03-10 14:16:15 -0300
commit04b767af6bf7ed8a0b2714af3c8546d1bb2e3f74 (patch)
treeee3dbddc32b14d87139b2d2f89fe70827e212f15
parentsrc/cicd-post-receive: Run cicd(8) as "cicd" user (diff)
downloadcicd-04b767af6bf7ed8a0b2714af3c8546d1bb2e3f74.tar.gz
cicd-04b767af6bf7ed8a0b2714af3c8546d1bb2e3f74.tar.xz
src/cicd: Run as user "cicd"
-rwxr-xr-xsrc/cicd2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cicd b/src/cicd
index f2c50de..d508b93 100755
--- a/src/cicd
+++ b/src/cicd
@@ -42,7 +42,7 @@ shift $((OPTIND - 1))
for repo in "$@"; do
id="$(uuid)"
- cat <<-EOF | q cicd-inbox in
+ cat <<-EOF | sudo -u cicd q -D /var/lib/cicd cicd-inbox in
repo $repo
id $id
now $(now)