diff --git a/CHANGELOG.md b/CHANGELOG.md index f9d8b5d5..f9b6a1da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * remount-usr: do not try to remount /usr RW if /usr is not a mounted partition * minifirewall: Fix nagios check for old versions of minifirewall * autosysadmin: Add a role to automatically deploy autosysadmin on evolixisation +* vrrpd: test if interface exists before deleting it ### Changed diff --git a/vrrpd/files/vrrp_switch.sh b/vrrpd/files/vrrp_switch.sh index 8f260a8a..1bacd859 100644 --- a/vrrpd/files/vrrp_switch.sh +++ b/vrrpd/files/vrrp_switch.sh @@ -72,8 +72,10 @@ case "${STATE}" in ;; "slave" ) - # Delete interface - ip link delete "${VIRTUAL_INTERFACE_NAME}" + # Delete interface if it exists + if ip link show "${VIRTUAL_INTERFACE_NAME}" >/dev/null 2>&1; then + ip link delete "${VIRTUAL_INTERFACE_NAME}" + fi ;; * )