Note for the docs: changing permanent directory on Debian

Hello,

I just wanted to change the permanent directory as described in the docs by editing “xwiki.properties”.
This is an install through the Debian package and running on Tomcat. After changing the path in “xwiki.properties”, Tomcat wouldn’t start anymore.
The log said:
tomcat9.service: Failed to set up mount namespacing: /run/systemd/unit-root/var/lib/xwiki/data: No such file or directory

After some searching online, I found out this is because the permanent directory path is specified again in a systemd config file to allow Tomcat write access. So this file must have been installed by the Debian package.
For me the file was “/etc/systemd/system/tomcat9.service.d/xwiki-tomcat9-systemd.conf”.
After changing the path there too, and doing a “systemctl daemon-reload”, Tomcat was starting again.
The Wiki loaded fine and I was able to add attachments too.

I didn’t feel comfortable editing the docs themselves, which I think is encouraged, but if someone from the team finds it’s worth adding this, I wanted to post it here.

Edit: if you want me to, I can still try to add what I wrote here as an edit to the docs.

I added a dedicated section on https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationViaAPT/#HAccessafilefromXWiki. Don’t hesitate to modify it if you think of a version that would be more clear for you.