Update Installer.sh

Added root check
This commit is contained in:
b.waal 2023-09-25 02:21:38 +02:00
parent a3522138f0
commit 5f60106aa2

View File

@ -23,6 +23,11 @@ GIT=https://git.ictcorpnet.com/b.waal/$REPO/raw
# Pre-Check # # Pre-Check #
##------------## ##------------##
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
wget $GIT/$BRANCH/Config/OScheck.sh -O /tmp/OScheck.sh wget $GIT/$BRANCH/Config/OScheck.sh -O /tmp/OScheck.sh
source /tmp/OScheck.sh source /tmp/OScheck.sh