Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/misc/convert-post
diff options
context:
space:
mode:
Diffstat (limited to 'misc/convert-post')
-rwxr-xr-xmisc/convert-post9
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/convert-post b/misc/convert-post
new file mode 100755
index 0000000..8246dcd
--- /dev/null
+++ b/misc/convert-post
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+cp -r /srv/db.save/context/* db/context/
+
+for guid in `cat pilot.list`; do
+ echo -n "{\"seqno\": 1, \"value\": [\"pilot\"]}" > db/context/${guid:0:2}/$guid/layer
+done
+
+rm -rf index