Skip to content

Commit

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

- name: Unzip the Forest release package on the remote server
ansible.builtin.command:
cmd: "unzip -o {{ remote_resources_path }}/forest.zip -d {{ remote_resources_path }}"
cmd: "unzip -jo {{ remote_resources_path }}/forest.zip -d forest/"

- name: Execute the init.sh script
ansible.builtin.shell:
Expand Down
2 changes: 1 addition & 1 deletion ansible/archival-snapshots/resources/diff_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euxo pipefail

FOREST=/mnt/md0/exported/archival/forest-v0.17.2/forest-tool
FOREST=/mnt/md0/exported/archival/forest/forest-tool
UPLOADED_DIFFS=/mnt/md0/exported/archival/uploaded-diff-snaps.txt
UPLOAD_QUEUE="/mnt/md0/exported/archival/upload_files.txt"

Expand Down
6 changes: 3 additions & 3 deletions ansible/archival-snapshots/resources/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set -euxo pipefail
GENESIS_TIMESTAMP=1598306400
SECONDS_PER_EPOCH=30

FOREST="/mnt/md0/exported/archival/forest-v0.17.2/forest"
FOREST_CLI="/mnt/md0/exported/archival/forest-v0.17.2/forest-cli"
FOREST_TOOL="/mnt/md0/exported/archival/forest-v0.17.2/forest-tool"
FOREST="/mnt/md0/exported/archival/forest/forest"
FOREST_CLI="/mnt/md0/exported/archival/forest/forest-cli"
FOREST_TOOL="/mnt/md0/exported/archival/forest/forest-tool"

CURRENT_SNAPSHOT=$(aws --profile prod --endpoint "$ENDPOINT" s3 ls "s3://forest-archive/mainnet/lite/" | sort | tail -n 1 | awk '{print $NF}')
CURRENT_EPOCH=$(echo "$CURRENT_SNAPSHOT" | awk -F'_' '{gsub(/[^0-9]/, "", $6); print $6}')
Expand Down

0 comments on commit 5f4cd5b

Please sign in to comment.