mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-23 13:45:19 +00:00
use newgrp
Co-authored-by: Jeevitha Kannan K S <ksjeevithakannan123@gmail.com>
This commit is contained in:
parent
15e3a10009
commit
e3397f8329
|
@ -56,6 +56,7 @@ install_docker() {
|
||||||
|
|
||||||
printf "%b\n" "${YELLOW}Adding current user to the docker group...${RC}"
|
printf "%b\n" "${YELLOW}Adding current user to the docker group...${RC}"
|
||||||
"$ESCALATION_TOOL" usermod -aG docker "$USER"
|
"$ESCALATION_TOOL" usermod -aG docker "$USER"
|
||||||
|
newgrp docker
|
||||||
printf "%b\n" "${GREEN}Current user added to the docker group successfully.${RC}"
|
printf "%b\n" "${GREEN}Current user added to the docker group successfully.${RC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user