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
487a9d72
"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "229e43e8b4578f4e69e02b35a5b33e655b6be3e8"
Commit
487a9d72
authored
Sep 05, 2024
by
wangkx1
Browse files
Add new file
parent
438819db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
verify_kylin.sh
verify_kylin.sh
+27
-0
No files found.
verify_kylin.sh
0 → 100644
View file @
487a9d72
#!/bin/bash
# 1. 添加 10.17.30.230 hygon.ai.com 到 /etc/hosts 文件的末尾
HOST_ENTRY
=
"10.17.30.230 hygon.ai.com"
HOSTS_FILE
=
"/etc/hosts"
if
!
grep
-q
"
$HOST_ENTRY
"
"
$HOSTS_FILE
"
;
then
echo
"
$HOST_ENTRY
"
|
sudo tee
-a
"
$HOSTS_FILE
"
echo
"已添加
$HOST_ENTRY
到
$HOSTS_FILE
"
else
echo
"
$HOST_ENTRY
已存在于
$HOSTS_FILE
中"
fi
# 2. 从远程服务器下载 harbor.crt 文件
REMOTE_USER
=
"root"
REMOTE_HOST
=
"10.17.30.230"
REMOTE_PATH
=
"/home/harbor/key/harbor.crt"
LOCAL_PATH
=
"/etc/ssl/certs/"
scp
"
$REMOTE_USER
@
$REMOTE_HOST
:
$REMOTE_PATH
"
"
$LOCAL_PATH
"
if
[
$?
-eq
0
]
;
then
echo
"文件已成功下载到
$LOCAL_PATH
"
else
echo
"文件下载失败"
fi
sudo
update-ca-certificates
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