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
9a9cfc55
Commit
9a9cfc55
authored
Oct 20, 2024
by
wangkx1
Browse files
Update solve_ca.sh
parent
ca5f405b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
solve_ca.sh
solve_ca.sh
+2
-2
No files found.
solve_ca.sh
View file @
9a9cfc55
#!/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.2
7
.10
0
hygon.ai.com"
HOST_ENTRY
=
"10.17.2
6
.10
8
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.2
7
.10
0
"
REMOTE_HOST
=
"10.17.2
6
.10
8
"
REMOTE_PATH
=
"/home/harbor/key/harbor.crt"
REMOTE_PATH
=
"/home/harbor/key/harbor.crt"
LOCAL_PATH
=
"/etc/ssl/certs/"
LOCAL_PATH
=
"/etc/ssl/certs/"
...
...
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