adding check for root running the install script
authorChris Sharp <csharp@georgialibraries.org>
Sun, 2 Apr 2017 13:10:42 +0000 (09:10 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 2 Apr 2017 13:10:42 +0000 (09:10 -0400)
install-ubuntu-14.04.sh

index c0d5604..9cadd35 100755 (executable)
 #
 # 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"