On 2022/06/06 18:46, Aisha Tammy wrote:
>
>
> On 6/6/22 18:30, Stuart Henderson wrote:
> > creating /var/www/var/www in PLIST is not ideal, some people already have
> > a symlink from /var/www/var -> .. to cope with similar situations in locally
Oops actually I meant /var/www/var/www -> ..
(This is my #1 method for making PHP stuff easier to work with where
it needs to access files both inside and outside the chroot if I'm just
doing a local checkout rather than installing it from packages where
it can be patched).
> > installed software, and IIRC if you include that as a directory in PLIST it
> > may replace the existing symlink
> Oof, yes you're right.
> > perhaps better to patch the scripts that are run from httpd to strip the
> > /var/www prefix if necessary (but a user might of course be running without
> > chroot anyway)
> Monica scripts are complex, and I don't fancy myself as a PHP developer
> enough to change them.
>
> What about if it's added to the README ?
That makes sense to me.
> I can also try to flesh it out a bit more by including bits from https://github.com/monicahq/monica/blob/main/docs/installation/providers/generic.md
Generally I would recommend not copying bits from upstream docs,
just refer to them and point out anything that needs doing differently.
Otherwise it is easy to forget about what pkg/README says about installs
when you're already running the software and do an update. Happened with
probably every port where I tried to do it before I learned to avoid it :)
No comments:
Post a Comment