1
0

Обновить install.sh

This commit is contained in:
kosenka 2025-04-04 11:35:32 +03:00
parent 648b2f36cd
commit 30ef4917b2

View File

@ -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