From c5fa70cf1719e9992002fe92fa9487c8faec3fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 29 Dec 2016 19:08:49 +0000 Subject: [PATCH] Set USER to whoami if needed --- fedora/configure_fresh_system | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fedora/configure_fresh_system b/fedora/configure_fresh_system index 138939ef..bf58d2ba 100755 --- a/fedora/configure_fresh_system +++ b/fedora/configure_fresh_system @@ -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