use newgrp

Co-authored-by: Jeevitha Kannan K S <ksjeevithakannan123@gmail.com>
This commit is contained in:
Adam Perkowski 2024-11-17 02:40:09 +01:00 committed by GitHub
parent 15e3a10009
commit e3397f8329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,6 +56,7 @@ install_docker() {
printf "%b\n" "${YELLOW}Adding current user to the docker group...${RC}"
"$ESCALATION_TOOL" usermod -aG docker "$USER"
newgrp docker
printf "%b\n" "${GREEN}Current user added to the docker group successfully.${RC}"
}