Archived
1
0
Fork 0

Don't run as root

This commit is contained in:
Casper V. Kristensen 2022-05-10 01:25:48 +02:00
parent c5be15b7bf
commit 74bcafc31b

View file

@ -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