Example #1
0
func (env *Environment) LoadHomeFs() error {
	logger.Debug("loading home file system")
	var err error
	if env.fs.home, err = fs.NewHome(os.Getenv("PKIIO_HOME")); err != nil {
		return err
	}
	return nil
}
Example #2
0
func (app *AdminApp) InitHomeFs() {
	var err error
	app.fs.home, err = fs.NewHome(os.Getenv("PKIIO_HOME"))
	checkAppFatal("Couldn't initialise home fs: %s", err)
}