From f85f28285492a1f74c88e3e964664a3e8e42aac6 Mon Sep 17 00:00:00 2001 From: forest Date: Fri, 10 Dec 2021 20:31:05 -0500 Subject: [PATCH] shell is not my first language --- capsulflask/shell_scripts/ip-dhcp-host.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capsulflask/shell_scripts/ip-dhcp-host.sh b/capsulflask/shell_scripts/ip-dhcp-host.sh index 65f496e..31c11d7 100755 --- a/capsulflask/shell_scripts/ip-dhcp-host.sh +++ b/capsulflask/shell_scripts/ip-dhcp-host.sh @@ -15,7 +15,7 @@ ipv4_address="$4" # for some reason libvirt appears to remember every dhcp lease even after it has expired. # adding a new ip-dhcp-host will fail if there already is one with the same ip address. # so we will try to delete any that already exist with that IP address just in case! -if [ "$action" == 'add' ]; then +if [ "$action" = 'add' ]; then printf "trying to delete any existing (probably expired) dhcp associations for $ipv4_address..." virsh net-update "$network_name" delete ip-dhcp-host "" --live --config || true fi