Skip to content

Commit

Permalink
Clear old files and chown added
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Aug 20, 2024
1 parent 896235b commit 9b73f2f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ jobs:
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y",
"source $HOME/.cargo/env",
"rustup update",
"sudo apt-get install -y clang cmake"
"sudo apt-get install -y clang cmake",
"sudo rm -rf /opt/miden/miden-node/genesis.dat && \
sudo rm -rf /opt/miden/miden-node/miden-store.sqlite3 && \
sudo rm -rf /opt/miden/miden-node/miden-store.sqlite3-* && \
sudo rm -rf /opt/miden/miden-node/accounts && \
sudo rm -rf /opt/miden/miden-node/blocks"
]}' \
--output text \
--query "Command.CommandId")
Expand Down Expand Up @@ -196,9 +201,11 @@ jobs:
--parameters '{"commands":[
"sudo cp -rp /root/.cargo/bin/miden-node /usr/bin/miden-node && sudo chmod a+x /usr/bin/miden-node",
"sudo cp -rp /root/.cargo/bin/miden-faucet /usr/bin/miden-faucet && sudo chmod a+x /usr/bin/miden-faucet",
"sudo /usr/bin/miden-node init -c /etc/miden/miden-node.toml -g /opt/miden/miden-node/genesis.toml",
"sudo /usr/bin/miden-node init -c /etc/miden/miden-node.toml -g /opt/miden/miden-node/genesis.toml",
"sudo /usr/bin/miden-node make-genesis -i /opt/miden/miden-node/genesis.toml -o /opt/miden/miden-node/genesis.dat",
"sudo /usr/bin/miden-faucet init -c /opt/miden/miden-faucet/miden-faucet.toml"
"sudo chown -R miden:miden /opt/miden/miden-node",
"sudo /usr/bin/miden-faucet init -c /opt/miden/miden-faucet/miden-faucet.toml",
"sudo chown -R miden:miden /opt/miden/miden-faucet"
]}' \
--output text \
--query "Command.CommandId")
Expand Down

0 comments on commit 9b73f2f

Please sign in to comment.