Add upgrade script for 0.9.14 (just hope it will be ok :)
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 26 Mar 2007 16:51:30 +0000 (16:51 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 26 Mar 2007 16:51:30 +0000 (16:51 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1615 839d8a87-29fc-0310-9880-83ba4fa771e5

upgrade/0.9.14/update.sh [new file with mode: 0755]
upgrade/0.9.14/wiki.utf8.sh

diff --git a/upgrade/0.9.14/update.sh b/upgrade/0.9.14/update.sh
new file mode 100755 (executable)
index 0000000..81d34d6
--- /dev/null
@@ -0,0 +1,64 @@
+#!/bin/bash
+
+. ../inc/pervasive.sh
+
+mailman_stop
+mailman_templates
+mailman_start
+
+###########################################################
+
+echo "we will now convert the wiki spool to UTF8. This may cause page corruption."
+
+./wiki.utf8.php
+
+###########################################################
+
+echo "fix geoloc table charset
+
+please hit ^D to continue"
+
+cat
+
+./geoloc.utf8.php
+
+###########################################################
+
+echo "upgrading database"
+
+for sql in *.sql
+do
+    echo -n $sql
+    $MYSQL x4dat < $sql &>/dev/null || echo -n " ERROR"
+    echo .
+done
+
+###########################################################
+
+echo "we will now upgrade the search table (this may be a long operation)
+
+please hit ^D to continue
+"
+
+cat
+
+pushd ../../bin
+./search.rebuild_db.php
+popd
+
+###########################################################
+
+echo "we will now upgrade the banana spool
+
+please hit ^D to continue
+"
+
+cat
+
+pushd ../../bin
+rm -rf /var/spool/banana/MLArchive
+rm -f /var/spool/banana/templates_c/*
+./banana.spoolgen.php
+popd
+
+############################################################
index 4e62d0f..e469bb3 100644 (file)
@@ -14,3 +14,5 @@ echo "Verifie que tout c'est bien passe en presse ^D"
 cat
 
 find $WIKISPOOLDIR -name '*.latin1' -exec rm {} ";"
+chown -R www-data:www-data $WIKISPOOLDIR
+