File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ if [ -z "$sys_ip_check" ]; then
7777 if [ -f " /etc/netplan/60-hestia.yaml" ]; then
7878 sys_ip=" - $ip /$cidr "
7979 else
80- sys_ip=" \n # Added by hestia"
80+ sys_ip=" # Added by hestia, please do not edit the file manually! "
8181 sys_ip=" $sys_ip \nnetwork:"
8282 sys_ip=" $sys_ip \n version: 2"
8383 sys_ip=" $sys_ip \n renderer: networkd"
Original file line number Diff line number Diff line change 6565# Deleting startup conf on Debian/Ubuntu
6666if [ -e " /etc/network/interfaces" ]; then
6767 if [ -f " /etc/netplan/60-hestia.yaml" ]; then
68- sed " /$ip /d" /etc/netplan/60-hestia.yaml
68+ sed -i " /$ip /d" /etc/netplan/60-hestia.yaml
6969 if ! grep -q ' -' /etc/netplan/60-hestia.yaml; then
7070 rm /etc/netplan/60-hestia.yaml
7171 fi
You can’t perform that action at this time.
0 commit comments