From 01cfc70982f0037a793dd09423d7d7d634b68a33 Mon Sep 17 00:00:00 2001
From: ed
Date: Sun, 5 Mar 2023 19:52:45 +0000
Subject: [PATCH] add example for webdav automount
---
copyparty/web/svcs.html | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/copyparty/web/svcs.html b/copyparty/web/svcs.html
index 9c27afa6..b55460b8 100644
--- a/copyparty/web/svcs.html
+++ b/copyparty/web/svcs.html
@@ -64,6 +64,11 @@
yum install davfs2
{% if accs %}printf '%s\n' {{ pw }} k | {% endif %}mount -t davfs -ouid=1000 http{{ s }}://{{ ep }}/{{ rvp }} mp
+
make it automount on boot:
++ printf '%s\n' "http{{ s }}://{{ ep }}/{{ rvp }} {{ pw }} k" >> /etc/davfs2/secrets + printf '%s\n' "http{{ s }}://{{ ep }}/{{ rvp }} mp davfs rw,user,uid=1000,noauto 0 0" >> /etc/fstab +
or you can use rclone instead, which is much slower but doesn't require root:
rclone config create {{ aname }}-dav webdav url=http{{ s }}://{{ rip }}{{ hport }} vendor=other{% if accs %} user=k pass={{ pw }}{% endif %}