Proof of concept:
[platal.git] / upgrade / inc / pervasive.sh
CommitLineData
0337d704 1#!/bin/bash
2
3MYSQL='mysql -u admin '
4
5
6set -e
7
8if [ "$UID" != 0 ]; then
9 echo "has to be run as root"
10 exit 1
11fi
12
13function mailman_stop() {
14 echo -n "stops mailman"
15 /etc/init.d/mailman stop &>/dev/null
16 echo .
17}
18
19function 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
26function mailman_start() {
27 echo -n "starts mailman"
28 /etc/init.d/mailman start &>/dev/null
29 echo .
30}
31