Skip to content

Commit

Permalink
Merge pull request #420 from forta-protocol/fix-home-dir-permissions
Browse files Browse the repository at this point in the history
Fix home directory permissions
  • Loading branch information
stevenlanders authored Feb 11, 2022
2 parents 3113d5e + cb70498 commit 80cd2f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/inject-secrets.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

mkdir -p /home/forta/.forta/
chown -R forta.forta /home/forta
configPath=/home/forta/.forta/config.yml
# this looks up the alchemy credentials and injects them into the config yaml
instanceId=$(curl -s http://instance-data/latest/meta-data/instance-id)
Expand Down Expand Up @@ -31,3 +33,5 @@ sed -i "s/ALCHEMY_URL/$apiUrl/g" $configPath
sed -i "s/REGISTRY_API_URL/$registryApiUrl/g" $configPath
sed -i "s/REGISTRY_WSS_URL/$registryWssUrl/g" $configPath
sed -i "s/MAINNET_API_URL/$mainnetApiUrl/g" $configPath

chown -R forta.forta /home/forta

0 comments on commit 80cd2f1

Please sign in to comment.