From 750c67553259f703237371130ac9f19dcda92824 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Sun, 2 Apr 2017 09:10:42 -0400 Subject: [PATCH] adding check for root running the install script --- install-ubuntu-14.04.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-ubuntu-14.04.sh b/install-ubuntu-14.04.sh index c0d5604..9cadd35 100755 --- a/install-ubuntu-14.04.sh +++ b/install-ubuntu-14.04.sh @@ -18,6 +18,10 @@ # # A script to automate installation of the report-creator feature. +if [ "$(whoami)" != "root" ]; then + echo "Must be root to run this script." && exit 1 +fi + APT_TOOL="apt-get" OSRF_WEB_ROOT="/openils/var/web" -- 2.11.0