Browse Source

sleep 2s upon startup to avoid both marker files getting the same timestamp

tags/v0.11.2
Jonathan Cobb 4 years ago
parent
commit
3748717242
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bubble-server/src/main/resources/packer/roles/bubble/files/refresh_bubble_ssh_keys_monitor.sh

+ 1
- 1
bubble-server/src/main/resources/packer/roles/bubble/files/refresh_bubble_ssh_keys_monitor.sh View File

@@ -23,7 +23,7 @@ BUBBLE_KEY_MARKER=/home/bubble/.refresh_ssh_keys
ROOT_KEY_MARKER=${SSH_KEY_BASE}/.refresh_ssh_keys ROOT_KEY_MARKER=${SSH_KEY_BASE}/.refresh_ssh_keys


if [[ ! -f ${BUBBLE_KEY_MARKER} ]] ; then 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 fi
if [[ ! -f ${ROOT_KEY_MARKER} ]] ; then if [[ ! -f ${ROOT_KEY_MARKER} ]] ; then
touch ${ROOT_KEY_MARKER} touch ${ROOT_KEY_MARKER}


Loading…
Cancel
Save