From 2ef5a49601af77ad3dc2f84306a277d239846a2e Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 16 Feb 2017 13:02:29 +0100 Subject: [PATCH] Update install.sh Check for being root user --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index f233d78..7d056c3 100644 --- a/install.sh +++ b/install.sh @@ -9,6 +9,13 @@ echo " /_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ " echo " German BOS Information Script " echo " by Bastian Schroll " echo "" + +# Make sure only root can run our script +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root!" 1>&2 + exit 1 +fi + echo "This may take a several minutes... Don't panic!" echo "" echo "Caution, script does not install a webserver with PHP and MySQL"