0chain / 0chain/zcnwebappscripts
chimney script: check if chimney script run on the same server as the domain
未关闭
适合新手
- 主要语言
- Shell
- 星标
- 1
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
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
贡献指南
这个仓库没有索引到贡献指南
调研方向
在代码仓库中寻找现有的 shell 脚本,尤其是与服务器或域名设置相关的脚本。该脚本需要通过 dig 获取域名的 IP,将其与通过 curl 获取的服务器公网 IP 进行比较,如果两者不同则输出错误信息并退出。通过在服务器上运行并验证条件是否生效来进行测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli, devops
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 70/100