Opa

From Kolab Wiki

Revision as of 20:15, 18 August 2007 by Spamremover (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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.

Retrieved from "http://wiki.kolab.org/Opa"
Personal tools