Only run as root

This commit is contained in:
2021-08-11 22:32:44 +02:00
parent 22f220cd2f
commit 0e9231de6b

View File

@@ -1,4 +1,10 @@
#!/bin/bash
### Setup Fedora ###
# Abort on errors
set -e
set -e
# Check if the script is running as root
if [[ $UID != "0" ]]; then
echo "ERROR: You must run this script as root!"
exit 1
fi