summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/benchmark/tune-adbapi-parameters.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/benchmark/tune-adbapi-parameters.sh b/scripts/benchmark/tune-adbapi-parameters.sh
new file mode 100755
index 00000000..22408d86
--- /dev/null
+++ b/scripts/benchmark/tune-adbapi-parameters.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+FILE=client/src/leap/soledad/client/adbapi.py
+
+if [ ! -f ${FILE} ]; then
+ exit 0
+fi
+
+sed -i -e "s/\(SQLCIPHER_MAX_RETRIES\) =.*/\1 = 100/" ${FILE}
+sed -i -e "s/\(SQLCIPHER_CONNECTION_TIMEOUT\) =.*/\1 = 100/" ${FILE}