0chain / 0chain/zcnwebappscripts

chimney script: check if chimney script run on the same server as the domain

未關閉 適合新手
#120 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。