Try to define an exhaustive list of tables to copy.
[platal.git] / upgrade / newdirectory-0.0.1 / update.sh
1 #!/bin/bash
2
3 . ../inc/pervasive.sh
4
5 mailman_stop
6 mailman_templates
7 mailman_start
8
9 ###########################################################
10 for sql in *.sql
11 do
12 echo -n $sql
13 (sed -e "s/#\([0-9a-z]*\)#/${DBPREFIX}\1/g" < $sql | $MYSQL $DATABASE &>/dev/null) || echo -n " ERROR"
14 echo .
15 done
16
17 ###########################################################
18
19 echo "Importing phone numbers"
20
21 ./phones.php
22
23 ###########################################################
24
25 echo "we will now upgrade the search table (this may be a long operation)
26
27 please hit ^D to continue
28 "
29
30 cat
31
32 pushd ../../bin
33 ./search.rebuild_db.php
34 popd