Change Webalizer config to live in AFS
authorAdam Chlipala <adamc@hcoop.net>
Sun, 10 Dec 2006 23:35:17 +0000 (23:35 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Sun, 10 Dec 2006 23:35:17 +0000 (23:35 +0000)
configDefault/webalizer.cfg
src/plugins/webalizer.sml

index cf087ea..4f1c83a 100644 (file)
@@ -1,6 +1,6 @@
 structure Webalizer :> WEBALIZER_CONFIG = struct
 
 structure Webalizer :> WEBALIZER_CONFIG = struct
 
-val configDir = "/etc/webalizer"
-val outputDir = "/afs/hcoop.net/common/etc/domtool/webalizer"
+val configDir = "/afs/hcoop.net/common/etc/domtool/webalizer/config"
+val outputDir = "/afs/hcoop.net/common/etc/domtool/webalizer/output"
 
 end
 
 end
index 313a582..61d2b08 100644 (file)
@@ -102,12 +102,7 @@ val () = Slave.registerFileHandler (fn fs =>
                                                         if Posix.FileSys.access (dir, []) then
                                                             ()
                                                         else
                                                         if Posix.FileSys.access (dir, []) then
                                                             ()
                                                         else
-                                                            Posix.FileSys.mkdir (dir, Posix.FileSys.S.flags
-                                                                                          [Posix.FileSys.S.iroth,
-                                                                                           Posix.FileSys.S.ixoth,
-                                                                                           Posix.FileSys.S.irwxu,
-                                                                                           Posix.FileSys.S.irgrp,
-                                                                                           Posix.FileSys.S.iwgrp])
+                                                            OS.FileSys.mkDir dir
                                                     end))
                                             | _ => ()
                                       end)
                                                     end))
                                             | _ => ()
                                       end)