On 9/7/22 00:11, Stuart Henderson wrote:

I didn't realise you meant path when you wrote "wiki name", so
in that case I think you want this in the rc script in the port, and
then users won't need to touch it ..

daemon_flags="${LOCALSTATEDIR}/mycorrhiza"
Well, I guess it is already set up like that (but I'm not sure if it's ok

to leave "." instead of "${LOCALSTATEDIR}/mycorrhiza" in the rc script).

I think I can upload patch to the pkg/README file to avoid unnecessary clutter.
--- pkg/README
+++ pkg/README
@@ -73,10 +73,14 @@ Setup
 
 See ${HOMEPAGE} for details about configuration and deployment.
 Be sure to set up proper authentication.
-Set desired wiki name, enable and start the daemon.
+By default wiki will be created in ${LOCALSTATEDIR}/mycorrhiza,
+but you can change that by setting daemon flags with rcctl(8).
 
-mycorrhiza# rcctl set mycorrhiza flags '${LOCALSTATEDIR}/mycorrhiza'
+mycorrhiza# rcctl set mycorrhiza flags '/some/other/wiki/dir'
+
+Enable and start the daemon.
+
 mycorrhiza# rcctl enable mycorrhiza
 mycorrhiza# rcctl start mycorrhiza
 
-wiki will be available at https://mycorrhiza.example.com
+Wiki will be available at https://mycorrhiza.example.com

Reply via email to