mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-16 20:40:15 +02:00
Perform git actions with the bridgehead user, to prevent authentication issues
This commit is contained in:
@ -88,9 +88,11 @@ case "$ACTION" in
|
|||||||
start)
|
start)
|
||||||
loadVars
|
loadVars
|
||||||
hc_send log "Bridgehead $PROJECT startup: Checking requirements ..."
|
hc_send log "Bridgehead $PROJECT startup: Checking requirements ..."
|
||||||
|
chown -R bridgehead ${BASE}
|
||||||
checkRequirements
|
checkRequirements
|
||||||
# Note: changes to "bridgehead" script will only take effect after next start.
|
# 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
|
# Local versions of focus and transfair are needed by EHDS2
|
||||||
clone_focus_if_nonexistent ${BASE}/..
|
clone_focus_if_nonexistent ${BASE}/..
|
||||||
build_focus ${BASE}/..
|
build_focus ${BASE}/..
|
||||||
|
Reference in New Issue
Block a user