mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-09-21 07:16:09 +08:00
Merge pull request #536 from nextcloud/enh/535/fix-permission-changes
fix docker socket permission changes
This commit is contained in:
commit
32681c4c95
|
@ -31,6 +31,9 @@ elif ! sudo -u www-data test -r /var/run/docker.sock; then
|
||||||
echo "Adding internal www-data to group $DOCKER_GROUP"
|
echo "Adding internal www-data to group $DOCKER_GROUP"
|
||||||
usermod -aG "$DOCKER_GROUP" www-data
|
usermod -aG "$DOCKER_GROUP" www-data
|
||||||
else
|
else
|
||||||
|
# Delete the docker group for cases when the docker socket permissions changed between restarts
|
||||||
|
groupdel docker &>/dev/null
|
||||||
|
|
||||||
# If the group doesn't exist, create it
|
# If the group doesn't exist, create it
|
||||||
echo "Creating docker group internally with id $DOCKER_GROUP_ID"
|
echo "Creating docker group internally with id $DOCKER_GROUP_ID"
|
||||||
groupadd -g "$DOCKER_GROUP_ID" docker
|
groupadd -g "$DOCKER_GROUP_ID" docker
|
||||||
|
|
Loading…
Reference in a new issue