From 915422dc8bf98a298853f03ae29349a90af003a0 Mon Sep 17 00:00:00 2001 From: Taewan Kim Date: Thu, 13 Apr 2023 14:48:18 +0900 Subject: [PATCH] Revert docker group check code. Signed-off-by: Taewan Kim Change-Id: I60d605fbb9d8c9cbf898583a0e4586cca61b9b79 --- bin/install_traininghost.sh | 11 +++++++++++ tools/kubernetes/install_k8s.sh | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/install_traininghost.sh b/bin/install_traininghost.sh index 5470bfe..0634df5 100755 --- a/bin/install_traininghost.sh +++ b/bin/install_traininghost.sh @@ -16,6 +16,17 @@ # # ================================================================================== +# Checking whether the user is added in the docker group or not. +if [[ $(groups | grep docker) ]]; then + echo "You are already added to the docker group!" +else + sudo groupadd docker + sudo usermod -aG docker $USER + echo "Adding you to the docker group re-login is required." + echo "Exiting now try to login again." + exit +fi + tools/kubernetes/install_k8s.sh tools/nfs/configure_nfs_server.sh localhost tools/helm/install_helm.sh diff --git a/tools/kubernetes/install_k8s.sh b/tools/kubernetes/install_k8s.sh index 71d52ba..44c1070 100755 --- a/tools/kubernetes/install_k8s.sh +++ b/tools/kubernetes/install_k8s.sh @@ -16,17 +16,6 @@ # # ================================================================================== -# Checking whether the user is added in the docker group or not. -if [[ $(groups | grep docker) ]]; then - echo "You are already added to the docker group!" -else - sudo groupadd docker - sudo usermod -aG docker $USER - echo "Adding you to the docker group re-login is required." - echo "Exiting now try to login again." - exit -fi - # Install Docker Engine sudo apt-get update sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release -- 2.16.6