summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-09 17:42:50 -0300
committerEuAndreh <eu@euandre.org>2025-03-09 17:47:00 -0300
commit0dac2461fb9b1f1b6bf779a2e90954c92dbbbfa2 (patch)
treedc865066418a0887dc5e117d55ead7563f49fbfa
parentsrc/cicd: If order of printf arguments (diff)
downloadcicd-0dac2461fb9b1f1b6bf779a2e90954c92dbbbfa2.tar.gz
cicd-0dac2461fb9b1f1b6bf779a2e90954c92dbbbfa2.tar.xz
src/cicd-post-receive: Run cicd(8) as "cicd" user
-rwxr-xr-xsrc/cicd-post-receive2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cicd-post-receive b/src/cicd-post-receive
index 2dc4128..db5b723 100755
--- a/src/cicd-post-receive
+++ b/src/cicd-post-receive
@@ -31,4 +31,4 @@ for n in `seq 0 $((GIT_PUSH_OPTION_COUNT - 1))`; do
done
-cicd add $DEPLOY_OPT -V "$SHA" -R "$REFNAME" "$PWD"
+sudo -u cicd cicd add $DEPLOY_OPT -V "$SHA" -R "$REFNAME" "$PWD"