Skip to content
Snippets Groups Projects

Added root user privilege check for the script

Closed Administrator requested to merge github/fork/kaismh/patch-1 into master
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
#!/bin/bash -e
if (( EUID != 0 )); then
echo "You need to be root to run this script." 1>&2
exit 100
fi
export DATAFARI_HOME=$(pwd)/..
export JAVA_HOME=${DATAFARI_HOME}/jvm
export LD_LIBRARY_PATH=${DATAFARI_HOME}/pgsql/lib
Loading