Moves upgrade scripts to a dedicated directory (will ease up merge of hruid feature...
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Wed, 18 Jun 2008 21:51:37 +0000 (23:51 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Wed, 18 Jun 2008 21:51:37 +0000 (23:51 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
upgrade/0.9.17/update.sh
upgrade/hruid/03_hruid.sql [moved from upgrade/0.9.17/03_hruid.sql with 100% similarity]
upgrade/hruid/connect.db.inc.php [moved from upgrade/0.9.17/connect.db.inc.php with 100% similarity]
upgrade/hruid/hruid.update.php [moved from upgrade/0.9.17/hruid.update.php with 100% similarity]
upgrade/hruid/update.sh [new file with mode: 0755]

index 0e99620..f351939 100755 (executable)
@@ -16,9 +16,4 @@ do
 done
 
 ###########################################################
-echo "Creating forlife ids for unregistered user (takes a while)."
-
-./hruid.update.php
-
-###########################################################
 
diff --git a/upgrade/hruid/update.sh b/upgrade/hruid/update.sh
new file mode 100755 (executable)
index 0000000..0e99620
--- /dev/null
@@ -0,0 +1,24 @@
+#!/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 "Creating forlife ids for unregistered user (takes a while)."
+
+./hruid.update.php
+
+###########################################################
+