fix: Update permissions on update

This commit is contained in:
janskiba 2024-02-21 15:25:02 +00:00
parent c7ca3bd044
commit b0558e4f88
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ assertVarsNotEmpty() {
fixPermissions() { fixPermissions() {
CHOWN=$(which chown) CHOWN=$(which chown)
sudo $CHOWN -R bridgehead /etc/bridgehead /srv/docker/bridgehead sudo $CHOWN -R bridgehead /etc/bridgehead /srv/docker/bridgehead
if [ -d "/tmp/bridgehead" ]; then # Used by datashield
sudo chown -R bridgehead:docker "/tmp/bridgehead"
if [ -d "/var/cache/bridgehead" ]; then # Used by the teiler
sudo chown -R bridgehead:docker "/var/cache/bridgehead"
} }
source lib/monitoring.sh source lib/monitoring.sh