0337d704 |
1 | #!/bin/bash |
2 | |
3 | MYSQL='mysql -u admin ' |
4 | |
5 | |
6 | set -e |
7 | |
8 | if [ "$UID" != 0 ]; then |
9 | echo "has to be run as root" |
10 | exit 1 |
11 | fi |
12 | |
13 | function mailman_stop() { |
14 | echo -n "stops mailman" |
15 | /etc/init.d/mailman stop &>/dev/null |
16 | echo . |
17 | } |
18 | |
19 | function mailman_templates() { |
20 | echo -n "copies new mails templates" |
21 | mkdir -p /etc/mailman/xorg |
22 | cp -f ../../install.d/lists/mail_templates/*.txt /etc/mailman/xorg |
23 | echo . |
24 | } |
25 | |
26 | function mailman_start() { |
27 | echo -n "starts mailman" |
28 | /etc/init.d/mailman start &>/dev/null |
29 | echo . |
30 | } |
31 | |