create-user: Make apache happy w.r.t. DAV lock directory
[hcoop/scripts.git] / create-user
index 87d56ec..8551fa7 100755 (executable)
@@ -226,7 +226,8 @@ ssh mire.hcoop.net fs checkvolumes
 # Files and directories on deleuze
 #
 
-# make per-user apache DAV lock directory
+# 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:nogroup /var/lock/apache2/dav/$USER
-sudo chmod u=rwx,go= /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