Update vmailpasswd for new servers
authoradamch <adamch>
Sun, 4 Nov 2007 20:52:42 +0000 (20:52 +0000)
committeradamch <adamch>
Sun, 4 Nov 2007 20:52:42 +0000 (20:52 +0000)
vmailpasswd/mlt.conf
vmailpasswd/out/.cvsignore [new file with mode: 0644]
vmailpasswd/pass.sml

index ec2f7f8..2ad8f60 100644 (file)
@@ -1,4 +1,4 @@
 out    out
-pub    /home/hcoop/members/cgi
+pub    /home/hcoop/public_html/cgi-bin
 
 cm     $/smlnj-lib.cm
diff --git a/vmailpasswd/out/.cvsignore b/vmailpasswd/out/.cvsignore
new file mode 100644 (file)
index 0000000..c68e5de
--- /dev/null
@@ -0,0 +1,4 @@
+*.sml
+.cm
+heap.*
+*.cm
index c78c84b..fc0a595 100644 (file)
@@ -6,17 +6,15 @@ fun validEmail email =
        [_, dom] => dom <> "localhost"
       | _ => false
 
-val vmp = "/usr/local/bin/vmailpasswd"
-
 fun change (email, old, new) =
     let
-       val cmd = String.concat ["/usr/local/bin/vmailpasswd \"",
+       val cmd = String.concat ["/usr/bin/sudo /usr/local/bin/vmailpasswd \"",
                                 String.toString email,
                                 "\" \"",
                                 String.toString old,
                                 "\" \"",
                                 String.toString new,
-                                "\" >/dev/null 2>/dev/null"]
+                                "\" >/tmp/pass1 2>/tmp/pass2"]
     in
        OS.Process.isSuccess (OS.Process.system cmd)
     end