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