From cca133b2a2e5d972d4616d3cad4346d19b79e740 Mon Sep 17 00:00:00 2001 From: Kilian Date: Wed, 28 Jul 2021 17:23:03 +0200 Subject: [PATCH] Root check --- installer/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/installer/install.sh b/installer/install.sh index 9af017f..37699db 100644 --- a/installer/install.sh +++ b/installer/install.sh @@ -1,5 +1,10 @@ #!/bin/bash +if [ "$(id -u)" != 0 ]; then + echo -e "\033[0;31mThis script must be run with root privileges" + exit 1 +fi + ./october_install_prereq.sh if [ $? != 0 ]; then exit 1