change install.sh not to use reserved shell variables for user

This commit is contained in:
Strazzom 2018-10-03 01:38:13 -07:00
parent f1e8d23f61
commit f8fe65b749
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ if [ "$EUID" == 0 ]
fi
# Get username for regular user.
USER=$(whoami)
username=$(whoami)
# Start root section
sudo su root <<'EOF'
@ -34,7 +34,7 @@ systemctl enable docker
pip install docker-compose
# Add user to docker group
usermod -aG docker $USER
usermod -aG docker $username
# End of root section
EOF