From: Chris Sharp Date: Sun, 2 Apr 2017 13:10:42 +0000 (-0400) Subject: adding check for root running the install script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=750c67553259f703237371130ac9f19dcda92824;p=contrib%2Fpines%2Freport-creator.git adding check for root running the install script --- 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"