Commit 9a9cfc55 authored by wangkx1's avatar wangkx1
Browse files

Update solve_ca.sh

parent ca5f405b
#!/bin/bash #!/bin/bash
# 1. 添加 10.17.30.230 hygon.ai.com 到 /etc/hosts 文件的末尾 # 1. 添加 10.17.30.230 hygon.ai.com 到 /etc/hosts 文件的末尾
HOST_ENTRY="10.17.27.100 hygon.ai.com" HOST_ENTRY="10.17.26.108 hygon.ai.com"
HOSTS_FILE="/etc/hosts" HOSTS_FILE="/etc/hosts"
if ! grep -q "$HOST_ENTRY" "$HOSTS_FILE"; then if ! grep -q "$HOST_ENTRY" "$HOSTS_FILE"; then
...@@ -13,7 +13,7 @@ fi ...@@ -13,7 +13,7 @@ fi
# 2. 从远程服务器下载 harbor.crt 文件 # 2. 从远程服务器下载 harbor.crt 文件
REMOTE_USER="root" REMOTE_USER="root"
REMOTE_HOST="10.17.27.100" REMOTE_HOST="10.17.26.108"
REMOTE_PATH="/home/harbor/key/harbor.crt" REMOTE_PATH="/home/harbor/key/harbor.crt"
LOCAL_PATH="/etc/ssl/certs/" LOCAL_PATH="/etc/ssl/certs/"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment