From e0fe39ab834f9c38c1225c46db974c846d5d4509 Mon Sep 17 00:00:00 2001 From: DavidCroftDKFZ <46788708+DavidCroftDKFZ@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:58:13 +0200 Subject: [PATCH] Perform git actions with the bridgehead user, to prevent authentication issues --- bridgehead | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bridgehead b/bridgehead index 33303ef..3cb6dc4 100755 --- a/bridgehead +++ b/bridgehead @@ -88,9 +88,11 @@ case "$ACTION" in start) loadVars hc_send log "Bridgehead $PROJECT startup: Checking requirements ..." + chown -R bridgehead ${BASE} checkRequirements # Note: changes to "bridgehead" script will only take effect after next start. - git pull + su bridgehead -c "git pull" + chown -R bridgehead ${BASE} # Local versions of focus and transfair are needed by EHDS2 clone_focus_if_nonexistent ${BASE}/.. build_focus ${BASE}/..