Fix some errors on X.net.
[platal.git] / upgrade / inc / pervasive.sh
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 if [[ -n "${DBPREFIX}" ]]; then
14 echo "Using non-default database ${DBPREFIX}x4dat."
15 fi
16 declare -r DATABASE="${DBPREFIX}x4dat"
17
18 function mailman_stop() {
19 echo -n "stops mailman"
20 /etc/init.d/mailman stop &>/dev/null
21 echo .
22 }
23
24 function mailman_templates() {
25 echo -n "copies new mails templates"
26 mkdir -p /etc/mailman/xorg
27 cp -f ../../modules/lists/mail_templates/*.txt /etc/mailman/xorg
28 echo .
29 }
30
31 function mailman_start() {
32 echo -n "starts mailman"
33 /etc/init.d/mailman start &>/dev/null
34 echo .
35 }