mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-16 23:00:15 +02:00
fix: Correctly set file permissions
This commit is contained in:
@ -279,7 +279,6 @@ function sync_secrets() {
|
||||
fi
|
||||
mkdir -p /var/cache/bridgehead/secrets/
|
||||
touch /var/cache/bridgehead/secrets/oidc
|
||||
chown -R bridgehead:docker /var/cache/bridgehead/secrets
|
||||
# The oidc provider will need to be switched based on the project at some point I guess
|
||||
docker run --rm \
|
||||
-v /var/cache/bridgehead/secrets/oidc:/usr/local/cache \
|
||||
|
@ -88,7 +88,9 @@ elif [[ "$DEV_MODE" == "DEV" ]]; then
|
||||
git clone "$url" /etc/bridgehead
|
||||
fi
|
||||
|
||||
chown -R bridgehead /etc/bridgehead /srv/docker/bridgehead
|
||||
mkdir -p /tmp/bridgehead /var/cache/bridgehead
|
||||
chown -R bridgehead:docker /etc/bridgehead /srv/docker/bridgehead /tmp/bridgehead /var/cache/bridgehead
|
||||
chmod -R g+wr /var/cache/bridgehead /tmp/bridgehead
|
||||
|
||||
log INFO "System preparation is completed and configuration is present."
|
||||
|
||||
|
Reference in New Issue
Block a user