From 47aab70b62927a80719f98bbdf3bea1f23ca5b7c Mon Sep 17 00:00:00 2001 From: Kristijan Mitrovic Date: Wed, 24 Jun 2020 11:12:40 +0200 Subject: [PATCH] Update first_time_marker file with correct value --- .../main/resources/ansible/roles/finalizer/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bubble-server/src/main/resources/ansible/roles/finalizer/tasks/main.yml b/bubble-server/src/main/resources/ansible/roles/finalizer/tasks/main.yml index b6a828fc..1934d496 100644 --- a/bubble-server/src/main/resources/ansible/roles/finalizer/tasks/main.yml +++ b/bubble-server/src/main/resources/ansible/roles/finalizer/tasks/main.yml @@ -4,12 +4,12 @@ - name: Snapshot ansible roles in the background command: bash -c "/usr/local/bin/snapshot_ansible.sh &" -- name: Touch first-time setup file - shell: su - bubble bash -c "if [[ ! -f /home/bubble/first_time_marker ]] ; then echo -n install > /home/bubble/first_time_marker ; fi" +- name: Create first-time setup file + shell: su - bubble bash -c "echo -n install > /home/bubble/first_time_marker" when: restore_key is not defined -- name: Touch first-time setup file (restore) - shell: su - bubble bash -c "if [[ ! -f /home/bubble/first_time_marker ]] ; then echo -n restore > /home/bubble/first_time_marker ; fi" +- name: Create first-time setup file (restore) + shell: su - bubble bash -c "echo -n restore > /home/bubble/first_time_marker" when: restore_key is defined - name: Install mitmproxy CA cert in local CA store