Opa
From Kolab wiki
Put the opa shell function in the .bashrc of the root account.
export LANG=C
opa () {
root="${1:-/kolab}"
if [ ! -d $root ]; then
echo "opa:ERROR: OpenPKG root directory $root not found"
exit 1
fi
if [ ! -f "$root/etc/rc" ]; then
echo "opa:ERROR: root directory does not contain OpenPKG hierarchy"
exit 1
fi
eval `$root/etc/rc --eval all env`
}
Then simply execute opa /kolab before doing any maintainance or configuration work on Kolab. Basically this ensures the correct setting of the environment including PATH, MANPATH etc.
