Skip to content

Commit

Permalink
fix playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed May 16, 2024
1 parent f9b6306 commit 6ad54bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ansible/archival-snapshots/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

- name: Execute the init.sh script
ansible.builtin.shell:
cmd: "./init.sh"
cmd: "nohup ./init.sh > init.log &"
chdir: "{{ remote_resources_path }}"
environment:
ARCHIVAL_SLACK_TOKEN: "{{ lookup('env', 'ARCHIVAL_SLACK_TOKEN') }}"
Expand Down
4 changes: 2 additions & 2 deletions ansible/archival-snapshots/resources/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ while ((LATEST_EPOCH - CURRENT_EPOCH > 30000)); do
echo "Next Height: $NEW_EPOCH"

# Export full snapshot to generate lite and diff snapshots
$FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000 > export.log
NEW_SNAPSHOT=$(grep -a forest export.log | awk -F'[:]' '{print $1}' | tail -1)
$FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000 > export.txt
NEW_SNAPSHOT=$(grep forest export.txt | awk -F'[:]' '{print $1}' | tail -1)
echo "New Snapshot Downloaded: $NEW_SNAPSHOT"

# Generate and upload lite snapshot
Expand Down

0 comments on commit 6ad54bf

Please sign in to comment.