Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
machine-init
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1fb5a150
authored
Jan 10, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update machine-init.sh 主机名改为覆盖而不是追加
1 parent
59cbcf41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
machine-init.sh
machine-init.sh
View file @
1fb5a15
...
@@ -64,7 +64,7 @@ sleep 2
...
@@ -64,7 +64,7 @@ sleep 2
base
base
echo
"设置本机主机名"
echo
"设置本机主机名"
hostname seetaas-cpu-
$end_ip
hostname seetaas-cpu-
$end_ip
echo
"seetaas-cpu-
$end_ip
"
>
>
/etc/hostname
echo
"seetaas-cpu-
$end_ip
"
>/etc/hostname
echo
"设置本机hosts"
echo
"设置本机hosts"
echo
"
$local_ip
seetaas-cpu-
$end_ip
"
>>/etc/hosts
echo
"
$local_ip
seetaas-cpu-
$end_ip
"
>>/etc/hosts
echo
"执行挂载数据盘操作"
echo
"执行挂载数据盘操作"
...
@@ -76,7 +76,7 @@ gpu() {
...
@@ -76,7 +76,7 @@ gpu() {
base
base
echo
"设置本机主机名"
echo
"设置本机主机名"
hostname seetaas-gpu-
$end_ip
hostname seetaas-gpu-
$end_ip
echo
"seetaas-gpu-
$end_ip
"
>
>
/etc/hostname
echo
"seetaas-gpu-
$end_ip
"
>/etc/hostname
echo
"设置本机hosts"
echo
"设置本机hosts"
echo
"
$local_ip
seetaas-gpu-
$end_ip
"
>>/etc/hosts
echo
"
$local_ip
seetaas-gpu-
$end_ip
"
>>/etc/hosts
echo
"执行挂载数据盘操作"
echo
"执行挂载数据盘操作"
...
@@ -87,7 +87,7 @@ storage() {
...
@@ -87,7 +87,7 @@ storage() {
base
base
echo
"设置本机主机名"
echo
"设置本机主机名"
hostname seetaas-storage-
$end_ip
hostname seetaas-storage-
$end_ip
echo
"seetaas-storage-
$end_ip
"
>
>
/etc/hostname
echo
"seetaas-storage-
$end_ip
"
>/etc/hostname
echo
"设置本机hosts"
echo
"设置本机hosts"
echo
"
$local_ip
seetaas-storage-
$end_ip
"
>>/etc/hosts
echo
"
$local_ip
seetaas-storage-
$end_ip
"
>>/etc/hosts
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment