minor fixes
This commit is contained in:
parent
69642493ce
commit
ce9582f7ca
|
@ -14,7 +14,7 @@ echo "Refreshing packages.."
|
|||
sudo apt update
|
||||
|
||||
echo "NB Check if installing from Docker repo instead of Ubuntu repo"
|
||||
apt-cache policy -y docker-ce
|
||||
apt-cache policy docker-ce
|
||||
|
||||
# Check repo
|
||||
read -p "Are we installing from Docker repo? (Y/N): " repo_ok
|
||||
|
@ -29,8 +29,8 @@ sudo apt install -y docker-ce
|
|||
#Add user to docker group
|
||||
read -p "Do you want to add the current user to docker group? (Y/N): " add_user
|
||||
if [[ $add_user == [yY] || $add_user == [yY][eE][sS] ]]; then
|
||||
sudo newgrp docker
|
||||
sudo usermod -aG docker ${USER}
|
||||
newgrp docker
|
||||
echo "User added to docker group"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue