HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Remove the 'adduser' code which has been moved to create-user script.
[hcoop/domtool2.git]
/
src
/
plugins
/
webalizer.sml
diff --git
a/src/plugins/webalizer.sml
b/src/plugins/webalizer.sml
index
c6043af
..
c6f8a17
100644
(file)
--- a/
src/plugins/webalizer.sml
+++ b/
src/plugins/webalizer.sml
@@
-32,9
+32,7
@@
val () = Apache.registerPre
name = id ^ ".wbl"}
in
TextIO.output (fd, "LogFile\t");
name = id ^ ".wbl"}
in
TextIO.output (fd, "LogFile\t");
- TextIO.output (fd, Config.homeBase);
- TextIO.output (fd, "/");
- TextIO.output (fd, user);
+ TextIO.output (fd, Domain.homedirOf user);
TextIO.output (fd, "/apache/log/");
TextIO.output (fd, node);
TextIO.output (fd, "/");
TextIO.output (fd, "/apache/log/");
TextIO.output (fd, node);
TextIO.output (fd, "/");
@@
-116,4
+114,10
@@
val () = Slave.registerFileHandler (fn fs =>
| _ => ()
end)
| _ => ()
end)
+val () = Domain.registerResetLocal (fn () =>
+ app (fn (node, _) =>
+ ignore (OS.Process.system (Config.rm ^ " -rf "
+ ^ Config.Webalizer.configDir ^ "/"
+ ^ node ^ "/*"))) Config.nodeIps)
+
end
end