From 5f60106aa2cd8cd0afd1f4d59362fab2da495e32 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Mon, 25 Sep 2023 02:21:38 +0200 Subject: [PATCH] Update Installer.sh Added root check --- Installer.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Installer.sh b/Installer.sh index 17fe946..119a2f3 100644 --- a/Installer.sh +++ b/Installer.sh @@ -23,6 +23,11 @@ GIT=https://git.ictcorpnet.com/b.waal/$REPO/raw # Pre-Check # ##------------## +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + wget $GIT/$BRANCH/Config/OScheck.sh -O /tmp/OScheck.sh source /tmp/OScheck.sh