diff options
| author | intrigeri <intrigeri@boum.org> | 2005-11-29 10:08:41 +0000 | 
|---|---|---|
| committer | intrigeri <intrigeri@boum.org> | 2005-11-29 10:08:41 +0000 | 
| commit | 280fdac2bc2146a73282b47b2c7ce66c19a0d3f2 (patch) | |
| tree | 85ec2a0f56214647bdb33165d4caf4352fce5158 /src/ninjahelper.in | |
| parent | 41f3fddfe2734b78e26dd5ca4ae1f0bd5c344119 (diff) | |
| download | backupninja-280fdac2bc2146a73282b47b2c7ce66c19a0d3f2.tar.gz backupninja-280fdac2bc2146a73282b47b2c7ce66c19a0d3f2.tar.bz2  | |
 r3555@krups:  intrigeri | 2005-11-15 13:59:57 +0100
 Moved easydialog.sh to lib/ directory: more code is going to be shared, let's start here.
Diffstat (limited to 'src/ninjahelper.in')
| -rwxr-xr-x | src/ninjahelper.in | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ninjahelper.in b/src/ninjahelper.in index 0f5af82..7497b69 100755 --- a/src/ninjahelper.in +++ b/src/ninjahelper.in @@ -196,6 +196,15 @@ if [ ! -d "$scriptdir" ]; then  	echo "Script directory $scriptdir not found."   	exit 1  fi +libdir=`grep libdirectory $conffile | awk '{print $3}'` +if [ ! -n "$libdir" ]; then +	echo "Cound not find entry 'libdirectory' in $conffile"  +	exit 1 +fi +if [ ! -d "$libdir" ]; then +	echo "Script directory $libdir not found."  +	exit 1 +fi  configdirectory=`grep configdirectory $conffile | awk '{print $3}'`  if [ ! -n "$configdirectory" ]; then  	echo "Cound not find entry 'configdirectory' in $conffile"  @@ -206,7 +215,7 @@ if [ ! -d "$configdirectory" ]; then  	exit 1  fi -. $scriptdir/easydialog.sh +. $libdir/easydialog.sh  if [ "$UID" != "0" ]; then  	msgBox "warning" "ninjahelper must be run by root!"  | 
