Add updater
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 18 Nov 2006 07:50:12 +0000 (07:50 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 18 Nov 2006 07:50:12 +0000 (07:50 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1100 839d8a87-29fc-0310-9880-83ba4fa771e5

upgrade/0.9.12/update.sh [new file with mode: 0755]

diff --git a/upgrade/0.9.12/update.sh b/upgrade/0.9.12/update.sh
new file mode 100755 (executable)
index 0000000..de82fc0
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+. ../inc/pervasive.sh
+
+mailman_stop
+mailman_templates
+mailman_start
+
+
+###########################################################
+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
+
+###########################################################
+