Обновить install.sh
This commit is contained in:
parent
648b2f36cd
commit
30ef4917b2
@ -33,6 +33,11 @@ read nameserver_ip
|
||||
echo -e "${ColorGreen}Введите IP-адреса для gateway сервера (пример: 192.168.0.1):${ColorOff}"
|
||||
read gatewayserver_ip
|
||||
|
||||
ip -o link show | awk '{print $2,$9}'
|
||||
|
||||
echo -e "${ColorGreen}Введите имя сеетвого устройства (пример: enp6s19):${ColorOff}"
|
||||
read netdevice
|
||||
|
||||
apt-get -y update && apt-get -y upgrade
|
||||
|
||||
### https://dondub.com/2021/07/udalenie-cloud-init-iz-ubuntu-server-21-04/
|
||||
@ -64,7 +69,7 @@ echo "# This is the network config written by 'subiquity'
|
||||
network:
|
||||
version: 2
|
||||
ethernets:
|
||||
[NET_DEVICE_ID]:
|
||||
$netdevice:
|
||||
dhcp4: no
|
||||
addresses:
|
||||
- $server_ip
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user