From ad8197d8f8225e73207342afb3e02d74164ebb1c Mon Sep 17 00:00:00 2001 From: simonfelding <45149055+simonfelding@users.noreply.github.com> Date: Mon, 1 Jul 2024 22:43:41 +0200 Subject: [PATCH] add $cache_enabled to entrypoint.sh --- build/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 1931087..710f01d 100644 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -2,6 +2,11 @@ set -ex +# Modify prefs.json +if [[ $cache_enabled == true ]]; then + sed -i 's/"cache_enabled": "true"/"cache_enabled": "false"/' /root/.config/protonmail/bridge/prefs.json +fi + # Initialize if [[ $1 == init ]]; then