[Koha-devel] Environment variables
Archives and Collections Society
info at AandC.org
Tue Aug 28 03:10:31 CEST 2012
At 09:33 PM 8/27/2012 -0300, Tomas Cohen Arazi wrote:
>/etc/environment is a better place for those vars. Note that a single
>koha install on the same box is not the only use case.
Then how do you make them user specific? Or should Zebra *not* be
'user=koha' specific?
Best - Paul
>Regards
>To+
>El ago 27, 2012 9:16 p.m., "Paul"
><<mailto:paul.a at aandc.org>paul.a at aandc.org> escribió:
>I'm in the process of comparing the Wiki page
><<http://wiki.koha-community.org/wiki/Koha_on_Ubuntu>http://wiki.koha-community.org/wiki/Koha_on_Ubuntu>
>with my own notes and am wondering if I am missing a "bigger picture"
>although I'm pretty sure my findings (3.8.4 on 12.04.1) are reliable.
>
>The Wiki suggests editing  /etc/cron.d/koha  to include
>KOHA_CONF=/etc/koha/koha-conf.xml, KOHAPATH=/usr/share/koha and
>PERL5LIB=$KOHAPATH/lib --- then "Alternatively you could ..." edit
>/etc/bash.bashrc.local to export KOHA_CONF and PERL5LIB
>
>I have found on 3.6 and 3.8 you must (rather than "alternatively could")
>add the two export lines to /home/koha/.bashrc [1] -- if not the variables
>are lost on reboot and the cron will fail (C4 not found.)
>
>The /etc/cron.d/koha does not need the env vars:
>
>paul at server: cat /etc/cron.d/koha
>*/1 * * * *   koha  Â
>$KOHAPATH/bin/migration_tools/<http://rebuild_zebra.pl>rebuild_zebra.pl -a
>-b -z &> /dev/null
>
>My notes:
>
>CONCLUSION:
>3.8.4: cataloguing and zebra incremental cron fully functional.
>To renew PERL5LIB=/usr/share/koha/lib and
>KOHA_CONF=/etc/koha/koha-conf.xml after reboot, the 'export' must be in
>/home/koha/.bashrc; also /etc/cron.d/koha does not require any $ENV statements
>
>Am I missing something?
>
>tnx - paul
>
>[1] I tried all combinations of env vars in /home/koha/.bashrc and
>/etc/bash.bashrc.local, plus env vars or not in cron. I was a little
>surprised that the /etc/bash.bashrc.local did *not* restore the env vars
>to koha after reboot. Â Could someone running Debian Squeeze let me know
>if this is a Ubuntu or more general *deb problem? Â Or if there is a way
>of forcing 'local' to recognize user=koha?
>
>_______________________________________________
>Koha-devel mailing list
><mailto:Koha-devel at lists.koha-community.org>Koha-devel at lists.koha-community.org
>http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>website : <http://www.koha-community.org/>http://www.koha-community.org/
>git : <http://git.koha-community.org/>http://git.koha-community.org/
>bugs : <http://bugs.koha-community.org/>http://bugs.koha-community.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20120827/3aa1ddd0/attachment.htm>
More information about the Koha-devel
mailing list