added sudo check, cleaned up comments
This commit is contained in:
6
debian/debian-install-docker.sh
vendored
6
debian/debian-install-docker.sh
vendored
@@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then
|
||||
echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ ! -f /etc/apt/keyrings/docker.gpg ]]
|
||||
then
|
||||
apt-get update
|
||||
|
||||
Reference in New Issue
Block a user