diff --git a/util/clear_nonpwd.sh b/util/clear_nonpwd.sh new file mode 100755 index 0000000..31fa080 --- /dev/null +++ b/util/clear_nonpwd.sh @@ -0,0 +1,2 @@ +#!/bin/sh +find . -iname '*.sqlite' -exec sqlite3 '{}' "DELETE FROM kv_store WHERE key NOT LIKE '%-password' AND key NOT LIKE '%-secret' AND key != 'email-to';" ';' diff --git a/util/clear_to.sh b/util/clear_to.sh new file mode 100755 index 0000000..cfe78f9 --- /dev/null +++ b/util/clear_to.sh @@ -0,0 +1,2 @@ +#!/bin/sh +find . -iname '*.sqlite' -exec sqlite3 '{}' "DELETE FROM kv_store WHERE key = 'email-to';" ';'