Skip to content

Commit 391085c

Browse files
committed
Small changes and bugfixes.
1 parent 7f27d6c commit 391085c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/v-add-sys-ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

bin/v-delete-sys-ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fi
6565
# Deleting startup conf on Debian/Ubuntu
6666
if [ -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

0 commit comments

Comments
 (0)