Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangkx1
harbor
Commits
3009c2be
Commit
3009c2be
authored
Dec 11, 2024
by
wangkx1
Browse files
Update solve_ca_node3.sh
parent
0d19cc84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
solve_ca_node3.sh
solve_ca_node3.sh
+3
-3
No files found.
solve_ca_node3.sh
View file @
3009c2be
#!/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.0.5.172
dcu.ai
.com"
HOST_ENTRY
=
"10.0.5
1
.172
bj.harbor
.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,8 +13,8 @@ fi
...
@@ -13,8 +13,8 @@ fi
# 2. 从远程服务器下载 harbor.crt 文件
# 2. 从远程服务器下载 harbor.crt 文件
REMOTE_USER
=
"root"
REMOTE_USER
=
"root"
REMOTE_HOST
=
"10.0.5.172"
REMOTE_HOST
=
"10.0.5
1
.172"
REMOTE_PATH
=
"/home/harbor/key/
dcu
.crt"
REMOTE_PATH
=
"/home/harbor/key/
harbor
.crt"
LOCAL_PATH
=
"/etc/ssl/certs/"
LOCAL_PATH
=
"/etc/ssl/certs/"
echo
"如需使用, 请私聊索要密码"
echo
"如需使用, 请私聊索要密码"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment