Skip to content

Commit

Permalink
Merge pull request #674 from forta-network/caner/forta-684-docker-com…
Browse files Browse the repository at this point in the history
…posable-standalone-mode

CodeDeploy script improvements
  • Loading branch information
canercidam authored Mar 14, 2023
2 parents eb755fa + 12ce512 commit 00824dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/inject-secrets.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

set -ex
set -o pipefail

mkdir -p /home/forta/.forta/
chown -R forta.forta /home/forta
configPath=/home/forta/.forta/config.yml
Expand Down Expand Up @@ -38,4 +41,4 @@ if [ ! -f "$configPath" ]; then
sed -i "s/MAINNET_API_URL/$mainnetApiUrl/g" $configPath
fi

chown -R forta.forta /home/forta
chown -R forta.forta /home/forta
2 changes: 1 addition & 1 deletion scripts/stop-server.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

(killall -s SIGINT forta && sleep 1m) || true
(sudo systemctl stop forta && sleep 1m) || true

0 comments on commit 00824dd

Please sign in to comment.