| 1 | #!/bin/bash |
| 2 | |
| 3 | . ../inc/pervasive.sh |
| 4 | |
| 5 | mailman_stop |
| 6 | mailman_templates |
| 7 | mailman_start |
| 8 | |
| 9 | ########################################################### |
| 10 | |
| 11 | echo "we will now convert the wiki spool to UTF8. This may cause page corruption." |
| 12 | |
| 13 | ./wiki.utf8.php |
| 14 | |
| 15 | ########################################################### |
| 16 | |
| 17 | echo "fix geoloc table charset |
| 18 | |
| 19 | please hit ^D to continue" |
| 20 | |
| 21 | cat |
| 22 | |
| 23 | ./geoloc.utf8.php |
| 24 | |
| 25 | ########################################################### |
| 26 | |
| 27 | echo "upgrading database" |
| 28 | |
| 29 | for sql in *.sql |
| 30 | do |
| 31 | echo -n $sql |
| 32 | $MYSQL x4dat < $sql &>/dev/null || echo -n " ERROR" |
| 33 | echo . |
| 34 | done |
| 35 | |
| 36 | ########################################################### |
| 37 | |
| 38 | echo "we will now upgrade the search table (this may be a long operation) |
| 39 | |
| 40 | please hit ^D to continue |
| 41 | " |
| 42 | |
| 43 | cat |
| 44 | |
| 45 | pushd ../../bin |
| 46 | ./search.rebuild_db.php |
| 47 | popd |
| 48 | |
| 49 | ########################################################### |
| 50 | |
| 51 | echo "we will now upgrade the banana spool |
| 52 | |
| 53 | please hit ^D to continue |
| 54 | " |
| 55 | |
| 56 | cat |
| 57 | |
| 58 | pushd ../../bin |
| 59 | rm -rf /var/spool/banana/MLArchive |
| 60 | rm -f /var/spool/banana/templates_c/* |
| 61 | ./banana.spoolgen.php |
| 62 | popd |
| 63 | |
| 64 | ############################################################ |