diff options
Diffstat (limited to 'misc/convert-post')
-rwxr-xr-x | misc/convert-post | 9 |
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 |