Set USER to whoami if needed
This commit is contained in:
parent
1688b61b30
commit
c5fa70cf17
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ if [[ -z $NO_SYSTEMCTL ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# docker
|
# docker
|
||||||
|
if [[ -z $USER ]]; then
|
||||||
|
USER=`whoami`
|
||||||
|
fi
|
||||||
sudo groupadd docker
|
sudo groupadd docker
|
||||||
sudo usermod -aG docker $USER
|
sudo usermod -aG docker $USER
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue