fix: Always remove PID file

This commit is contained in:
Kroese 2025-10-03 00:25:37 +02:00 committed by GitHub
parent 09ca3bf118
commit 5b8b6fcb6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -515,6 +515,9 @@ if [[ "$IP" == "172.17."* ]]; then
warn "your container IP starts with 172.17.* which will cause conflicts when you install the Container Manager package inside DSM!"
fi
# Clean up old files
rm -f /var/run/dnsmasq.pid
if [[ -d "/sys/class/net/$VM_NET_TAP" ]]; then
info "Lingering interface will be removed..."
ip link delete "$VM_NET_TAP" || true