We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f27d6c commit 391085cCopy full SHA for 391085c
2 files changed
bin/v-add-sys-ip
@@ -77,7 +77,7 @@ if [ -z "$sys_ip_check" ]; then
77
if [ -f "/etc/netplan/60-hestia.yaml" ]; then
78
sys_ip=" - $ip/$cidr"
79
else
80
- sys_ip="\n# Added by hestia"
+ sys_ip="# Added by hestia, please do not edit the file manually!"
81
sys_ip="$sys_ip\nnetwork:"
82
sys_ip="$sys_ip\n version: 2"
83
sys_ip="$sys_ip\n renderer: networkd"
bin/v-delete-sys-ip
@@ -65,7 +65,7 @@ fi
65
# Deleting startup conf on Debian/Ubuntu
66
if [ -e "/etc/network/interfaces" ]; then
67
68
- sed "/$ip/d" /etc/netplan/60-hestia.yaml
+ sed -i "/$ip/d" /etc/netplan/60-hestia.yaml
69
if ! grep -q '-' /etc/netplan/60-hestia.yaml; then
70
rm /etc/netplan/60-hestia.yaml
71
fi
0 commit comments