Skip to content

Commit fcc8a0d

Browse files
docker_deb_build.py: Improve group err message
Signed-off-by: Simon Beaudoin <[email protected]>
1 parent 0ee53db commit fcc8a0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/docker_deb_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def check_docker_dependencies(timeout=20):
103103
if sock_group not in user_groups:
104104
raise Exception(
105105
f"Permission denied accessing Docker socket ({sock}). Current user '{user}' is not in the socket group '{sock_group}'.\n"
106-
f"Add the user to the group: sudo usermod -aG {sock_group} $USER (then re-login) or run the script with sudo.\n"
107-
f"Also, to avoid having to do a complete logout/login, you can run: newgrp {sock_group} which will start a new shell with the new group applied."
106+
f"Add the user to the group: \"sudo usermod -aG {sock_group} $USER\" (then re-login) or run the script with sudo.\n"
107+
f"Also, to avoid having to do a complete logout/login, you can run: \"newgrp {sock_group}\" which will start a new shell with the new group applied."
108108
)
109109
else:
110110
# user is in group but still cannot connect -> daemon likely stopped

0 commit comments

Comments
 (0)