0chain / 0chain/zcnwebappscripts
chimney script: check if chimney script run on the same server as the domain
- Dominant language
- Shell
- Stars
- 1
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
```
IP=$(dig +short blimp8mzfc.zus.network)
CURRENT_IP=$(curl ipv4.icanhazip.com)
if [ "$EXPECTED_IP" != "$CURRENT_IP" ]; then
echo "the ip of this server is not pointed to domain: blimp8mzfc.zus.network. Please point the domain and try again"
exit 1
fi
```
This script can be used to check
Contributor guide
No contributing guide indexed for this repository
Research direction
Look for existing shell scripts in the repository, especially those related to server or domain setup. The script needs to fetch the domain's IP via dig, compare it to the server's public IP from curl, and exit with an error message if they differ. Test by running on a server and verifying the condition works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, devops
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 70/100