Fixes xnetevents aliases creation and update:
[platal.git] / upgrade / 0.9.16 / update.sh
CommitLineData
a2a1c2f2
FB
1#!/bin/bash
2
3. ../inc/pervasive.sh
4
cc44d7f5
FB
5echo "Upgrading bogofilter settings for ML"
6sudo -u list ./upgrade_lists.py
7
a2a1c2f2
FB
8mailman_stop
9mailman_templates
10mailman_start
11
2847640f
VZ
12###########################################################
13
14echo "fixing the xnetevents aliases (this may be a long operation)"
15
16./xnetevents.list.php
a2a1c2f2
FB
17
18###########################################################
2847640f
VZ
19
20echo "upgrading the database"
21
a2a1c2f2
FB
22for sql in *.sql
23do
24 echo -n $sql
25 $MYSQL x4dat < $sql &>/dev/null || echo -n " ERROR"
26 echo .
27done
28
29###########################################################
30
31echo "we will now upgrade the search table (this may be a long operation)
32
33please hit ^D to continue
34"
35
36cat
37
38pushd ../../bin
39./search.rebuild_db.php
40popd
41
42###########################################################
43