From: Taewan Kim Date: Thu, 13 Apr 2023 05:48:18 +0000 (+0900) Subject: Revert docker group check code. X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=915422dc8bf98a298853f03ae29349a90af003a0;p=aiml-fw%2Faimlfw-dep.git Revert docker group check code. Signed-off-by: Taewan Kim Change-Id: I60d605fbb9d8c9cbf898583a0e4586cca61b9b79 --- 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