Don't run as root
This commit is contained in:
parent
c5be15b7bf
commit
74bcafc31b
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,14 @@
|
|||
|
||||
set -e
|
||||
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
echo "You probably don't want to run this as root!"
|
||||
echo "Do this first:"
|
||||
echo "adduser caspervk"
|
||||
echo "adduser caspervk sudo"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Packages
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
|
|
Reference in a new issue