mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-10 17:03:44 +08:00
root user should always be able to write to the socket but leave the check there just in case
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
49ea222a22
commit
47a022b2e3
1 changed files with 2 additions and 8 deletions
|
@ -5,14 +5,8 @@ if ! [ -a "/var/run/docker.sock" ]; then
|
|||
echo "Docker socket is not available. Cannot continue."
|
||||
exit 1
|
||||
elif ! test -r /var/run/docker.sock; then
|
||||
echo "Trying to fix docker.sock permissions internally..."
|
||||
GROUP="$(stat -c '%g' /var/run/docker.sock)"
|
||||
groupadd -g "$GROUP" docker && \
|
||||
usermod -aG docker root
|
||||
if ! test -r /var/run/docker.sock; then
|
||||
echo "Docker socket is not readable by the root user. Cannot continue."
|
||||
exit 1
|
||||
fi
|
||||
echo "Docker socket is not readable by the root user. Cannot continue."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$CONTAINER_TO_UPDATE" ]; then
|
||||
|
|
Loading…
Reference in a new issue