From aa392abaf8bc95df66841df6310226f190fded63 Mon Sep 17 00:00:00 2001 From: Dhruv Mistry <68422844+dhruvmistry2000@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:09:03 +0530 Subject: [PATCH] Adding current user to DOCKER group When i used the docker setup in LINUTIL it didn't add the user to the docker group so this is the edited file --- core/tabs/applications-setup/docker-setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/tabs/applications-setup/docker-setup.sh b/core/tabs/applications-setup/docker-setup.sh index b693656b..af578194 100755 --- a/core/tabs/applications-setup/docker-setup.sh +++ b/core/tabs/applications-setup/docker-setup.sh @@ -53,6 +53,11 @@ install_docker() { esac startAndEnableService docker + + # Add the current user to the docker group + printf "%b\n" "${YELLOW}Adding current user to the docker group...${RC}" + "$ESCALATION_TOOL" usermod -aG docker "$USER" + printf "%b\n" "${GREEN}Current user added to the docker group successfully.${RC}" } install_docker_compose() { @@ -109,4 +114,4 @@ install_components() { checkEnv checkEscalationTool -install_components \ No newline at end of file +install_components