Only run as root
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
### Setup Fedora ###
|
### Setup Fedora ###
|
||||||
# Abort on errors
|
# 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
|
||||||
Reference in New Issue
Block a user