mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
fix docker socket permission changes
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
f518ea7fee
commit
8ba392ba0a
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue