Update entrypoint.sh (#1861)

Fix applying permissions to volume directories when running in rootless podman
This commit is contained in:
abraunegg 2022-03-06 08:26:35 +11:00 committed by GitHub
parent 75405afa28
commit c63b390f14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ else
grep -qv root <( groups "${oduser}" ) || { echo 'ROOT level privileges prohibited!'; exit 1; }
fi
chown "${oduser}:${odgroup}" /onedrive/ /onedrive/conf
chown "${oduser}:${odgroup}" /onedrive/data /onedrive/conf
# Default parameters
ARGS=(--monitor --confdir /onedrive/conf --syncdir /onedrive/data)