apache: move davlockdb to /var/local release_20200227
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 28 Feb 2020 00:55:04 +0000 (19:55 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 28 Feb 2020 00:55:04 +0000 (19:55 -0500)
/var/run on modern GNU/Linux systems is a symlink to /run/lock,
causing any dav lock directories for users to disappear on
reboot. Move to a persistent location.

src/plugins/apache.sml

index c87644c..9d751e8 100644 (file)
@@ -561,7 +561,7 @@ fun vhostBody (env, makeFullHost) =
                                  else
                                      ();
 
                                  else
                                      ();
 
-                                 TextIO.output (file, "\n\tDAVLockDB /var/lock/apache2/dav/");
+                                 TextIO.output (file, "\n\tDAVLockDB /var/local/domtool/apache2/dav/");
                                  TextIO.output (file, user);
                                  TextIO.output (file, "/DAVLock");
 
                                  TextIO.output (file, user);
                                  TextIO.output (file, "/DAVLock");