[Bug 13216] fix koha-shell to work with git/dev installs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13216 --- Comment #8 from Mason James <mtj@kohaaloha.com> --- (In reply to Mason James from comment #7)
(In reply to Marcel de Rooy from comment #4)
This is an interesting change. I added an see-also to a blocked bug 13971 from myself. I was not yet satisfied with the solution there.
Instead of passing the kohadir on all individual scripts like koha-shell here, koha-rebuild-zebra or even another one in the other see-also, imo we would benefit from a more general approach. The get_perl5lib function in koha-functions.sh would do (from 13971); we should forget the other function is_gitified.
Instead of passing the alternative path all the time, why not once record it in koha-conf.xml ? What do you think ?
just my 2 cents... we need to know 2 things here...
1/ what the base directory of the Koha is? 2/ what kind of install type the Koha is? (eg: tar, git, .deb), as the directory structure is difference for each type
we do need something like a is_gitified() function, that checks the koha-conf.xml file for some value
knowing the base directory of the Koha, and 'guessing' the install type - wont give us enough info to sort this problem?
specifically scripts like koha-update-schema and koha-translate will need to know these 2 things, to work correctly with a gitified Koha; as the dir structure is different for each type -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org