create-user: Make apache happy w.r.t. DAV lock directory
[hcoop/scripts.git] / create-user
index b01cbc6..8551fa7 100755 (executable)
@@ -221,3 +221,13 @@ vos syncvldb deleuze
 # refresh volume location cache (takes ~2hrs otherwise)
 fs checkvolumes
 ssh mire.hcoop.net fs checkvolumes
+
+#
+# Files and directories on deleuze
+#
+
+# Make per-user apache DAV lock directory -- the directory must be
+# both user and group-writable, which is silly.
+sudo mkdir -p /var/lock/apache2/dav/$USER
+sudo chown $USER:www-data /var/lock/apache2/dav/$USER
+sudo chmod ug=rwx,o= /var/lock/apache2/dav/$USER