create-user: move dav lock db directory
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 28 Feb 2020 01:02:27 +0000 (20:02 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 28 Feb 2020 01:02:27 +0000 (20:02 -0500)
/var/lock clears itself on boot nowadays, move to /var/local.

https://bugzilla.hcoop.net/show_bug.cgi?id=1298

lib/create-user-lib.sh

index 32ace7d..999f9bc 100644 (file)
@@ -253,7 +253,7 @@ function seed_user_hcoop_directories () {
 function create_dav_locks () {
     # Make per-user apache DAV lock directory -- the directory must be
     # both user and group-writable, which is silly.
-    execute_on_web_nodes sudo mkdir -p /var/lock/apache2/dav/$NEWUSER
+    execute_on_web_nodes sudo mkdir -p /var/local/domtool/apache2/dav/$NEWUSER
     execute_on_web_nodes sudo chown $NEWUSER:www-data /var/lock/apache2/dav/$NEWUSER
     execute_on_web_nodes sudo chmod ug=rwx,o= /var/lock/apache2/dav/$NEWUSER
 }