HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Write /etc/mailman/vhosts_cfg.py
[hcoop/domtool2.git]
/
scripts
/
domtool-publish
diff --git
a/scripts/domtool-publish
b/scripts/domtool-publish
index
fd8b8fc
..
3ce7c7d
100755
(executable)
--- a/
scripts/domtool-publish
+++ b/
scripts/domtool-publish
@@
-50,11
+50,15
@@
case $1 in
redo_exim
;;
mailman)
redo_exim
;;
mailman)
- /bin/cp /var/domtool/mailman.map /etc/mailman
+ /bin/echo "HCOOP_VHOSTS = {" >/etc/mailman/vhosts_cfg.py
+ /bin/cat /var/domtool/mailman.map >>/etc/mailman/vhosts_cfg.py
+ /bin/echo "}" >>/etc/mailman/vhosts_cfg.py
/etc/init.d/mailman reload
redo_exim
;;
courier)
/etc/init.d/mailman reload
redo_exim
;;
courier)
+ /usr/sbin/makeuserdb
+ /bin/chown -R domtool.domtool /etc/courier/userdb
/bin/cat /etc/courier/userdb/* >/etc/courier/exim
/bin/chmod o-r /etc/courier/exim
/usr/sbin/exim_dbmbuild /etc/courier/exim /etc/courier/exim.dat
/bin/cat /etc/courier/userdb/* >/etc/courier/exim
/bin/chmod o-r /etc/courier/exim
/usr/sbin/exim_dbmbuild /etc/courier/exim /etc/courier/exim.dat
@@
-64,6
+68,12
@@
case $1 in
smtplog)
/bin/grep $2 /var/log/exim4/mainlog
;;
smtplog)
/bin/grep $2 /var/log/exim4/mainlog
;;
+ apache-fixperms)
+ /bin/chown -R domtool.domtool /var/log/apache2/user
+ ;;
+ apache1.3-fixperms)
+ /bin/chown -R domtool.domtool /var/log/apache/user
+ ;;
*)
echo "Usage: domtool-publish [apache|bind|courier|exim|mailman|smtplog STRING]"
;;
*)
echo "Usage: domtool-publish [apache|bind|courier|exim|mailman|smtplog STRING]"
;;