mirror of https://github.com/n1nj4sec/pupy.git
change install.sh not to use reserved shell variables for user
This commit is contained in:
parent
f1e8d23f61
commit
f8fe65b749
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue