diff options
Diffstat (limited to 'helpers/lh_testroot')
-rwxr-xr-x | helpers/lh_testroot | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helpers/lh_testroot b/helpers/lh_testroot index e694529..bb5592e 100755 --- a/helpers/lh_testroot +++ b/helpers/lh_testroot @@ -22,10 +22,14 @@ USAGE="${PROGRAM} [--force]" Arguments "${@}" +# Reading configuration files +Read_conffile config/common +Set_defaults + Echo_debug "Init ${PROGRAM}" # Checking user account -if [ "`id -u`" -ne "0" ] +if [ "`${LH_ROOT_COMMAND} id -u`" -ne "0" ] then Echo_error "need root privileges" exit 1 |