Set USER to whoami if needed

This commit is contained in:
Cyryl Płotnicki 2016-12-29 19:08:49 +00:00
parent 1688b61b30
commit c5fa70cf17

View file

@ -32,6 +32,9 @@ if [[ -z $NO_SYSTEMCTL ]]; then
fi
# docker
if [[ -z $USER ]]; then
USER=`whoami`
fi
sudo groupadd docker
sudo usermod -aG docker $USER