From 94f04d70460067321af512fe94dc4146e7f0c46f Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Mon, 27 Jan 2020 12:29:42 -0500 Subject: [PATCH] always set mitm status first time through --- automation/roles/mitmproxy/files/mitmdump_monitor.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/automation/roles/mitmproxy/files/mitmdump_monitor.sh b/automation/roles/mitmproxy/files/mitmdump_monitor.sh index 43d9e49c..fe55ba39 100644 --- a/automation/roles/mitmproxy/files/mitmdump_monitor.sh +++ b/automation/roles/mitmproxy/files/mitmdump_monitor.sh @@ -42,6 +42,7 @@ function ensureMitmOff { } log "Watching marker file ${BUBBLE_MITM_MARKER} ..." +touch ${BUBBLE_MITM_MARKER} # first time through, always check and set on/off state while : ; do if [[ $(stat -c %Y ${BUBBLE_MITM_MARKER}) -gt $(stat -c %Y ${ROOT_KEY_MARKER}) ]] ; then if [[ ! -z "$(cmp -b ${ROOT_KEY_MARKER} ${BUBBLE_MITM_MARKER})" ]] ; then