database=$1
else
scriptdir=$(dirname $0)
- UTILS_PATH=$(cd $scriptdir/../../src ; pwd)
+ if [ -d "$scriptdir/../../src" ]
+ then
+ UTILS_PATH=$(cd $scriptdir/../../src ; pwd)
+ else
+ UTILS_PATH=$(cd $scriptdir/../.. ; pwd)
+ fi
export PATH=$PATH:$UTILS_PATH/utils:$UTILS_PATH/bin
if type forge_get_config
then
rm -f /var/cache/nscd/* || true
if type invoke-rc.d 2>/dev/null
then
- invoke-rc.d nscd restart || true
+ invoke-rc.d unscd restart || invoke-rc.d nscd restart || true
else
- service nscd restart || true
+ service unscd restart || service nscd restart || true
fi