New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduce DOKU_DATA and DOKU_CACHE variables for packaging #108
Conversation
add new constants, that makes packaging (rpm, deb) dokuwiki better fit to [FHS standards](http://www.pathname.com/fhs/pub/fhs-2.3.html): - DOKU_DATA - /var/lib/dokuwiki/ - DOKU_CACHE - /var/cache/dokuwiki/
this allows you to put 'cachedir' outside 'savedir', i.e savedir=/var/lib/dokuwiki, and cachedir=/var/cache/dokuwiki
Both can be set via $conf options and that's what the Debian packages does AFAIK. I don't see why this is needed. |
@glensc unless you can provide any more info why this would be needed I'll close this one soon. |
i'll try to test with your proposed changes. however quick looking i would say that installed would still fail and plugins that use those constants directly |
@glensc Why are the new constants only defined and never used outside the installer? At least in the debian package, the installer is not used at all afaik. |
well. okay, i can make dokuwiki to work with adding cachedir to config, but installer would be still needed to modify so it won't attempt to verify paths that have been relocated by the packager
is located to /etc/webapps/dokuwiki
is relocated to /var/lib/dokuwiki
is relocated to /var/cache/dokuwiki so i think it's more cleaner to add few mode constants, then i can define them in preload.php and not modify install.php altho i don't do preload.php trick right now (so confdir error is displayed), but i could try! |
otoh, preload.php is not loaded by install... |
okay, reprhase pull request: add DOKU_DATA and DOKU_CACHE constants for installer.php, so changing their default location is minimal patching of code, i.e only their definition, instead trying to match all uses in the script. thus, these constants are not needed outside installer.php i suppose i can remove them from init.php then and keep only in install.php? |
Okay we talked a bit more about this on IRC:
|
Skip undefined schemas when search for columns
add new constants, that makes packaging (rpm, deb) dokuwiki better fit to FHS standards: