From 8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:04:51 +0200 Subject: Adding live-helper 1.0~a7-1. --- helpers/lh_testroot | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'helpers/lh_testroot') diff --git a/helpers/lh_testroot b/helpers/lh_testroot index e6945292c..bb5592e79 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 -- cgit v1.2.3