diff --git a/scripts/curae.sh b/scripts/curae.sh index cbae734..920d2ed 100755 --- a/scripts/curae.sh +++ b/scripts/curae.sh @@ -24,7 +24,9 @@ home_dir=/usr/local/bin this_file=curae.sh -if [ "$EUID" -ne 0 ] +# https://stackoverflow.com/questions/18215973/how-to-check-if-running-as-root-in-a-bash-script +#if [ "$EUID" -ne 0 ] +if [ $(id -u) -ne 0 ] then echo "error: run as 'root'" exit fi