From 374871724242481bf1bd380655f3053b3902e1e3 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Wed, 17 Jun 2020 09:18:35 -0400 Subject: [PATCH] sleep 2s upon startup to avoid both marker files getting the same timestamp --- .../roles/bubble/files/refresh_bubble_ssh_keys_monitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bubble-server/src/main/resources/packer/roles/bubble/files/refresh_bubble_ssh_keys_monitor.sh b/bubble-server/src/main/resources/packer/roles/bubble/files/refresh_bubble_ssh_keys_monitor.sh index 8a61af69..7ee94aa0 100644 --- a/bubble-server/src/main/resources/packer/roles/bubble/files/refresh_bubble_ssh_keys_monitor.sh +++ b/bubble-server/src/main/resources/packer/roles/bubble/files/refresh_bubble_ssh_keys_monitor.sh @@ -23,7 +23,7 @@ BUBBLE_KEY_MARKER=/home/bubble/.refresh_ssh_keys ROOT_KEY_MARKER=${SSH_KEY_BASE}/.refresh_ssh_keys if [[ ! -f ${BUBBLE_KEY_MARKER} ]] ; then - touch ${BUBBLE_KEY_MARKER} && chown bubble ${BUBBLE_KEY_MARKER} + touch ${BUBBLE_KEY_MARKER} && chown bubble ${BUBBLE_KEY_MARKER} && sleep 2s fi if [[ ! -f ${ROOT_KEY_MARKER} ]] ; then touch ${ROOT_KEY_MARKER}