Skip to content

Commit 6e48df8

Browse files
Enhance uninstaller to remove additional DNS resolution artifacts on Linux
1 parent c40eb23 commit 6e48df8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dappnode_uninstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ uninstall() {
9797
# Clean up host DNS resolution artifacts (--resolve-from-host)
9898
if $IS_LINUX; then
9999
# systemd-resolved path: remove service, timer, and script
100-
if [ -f /etc/systemd/system/dappnode-dns.timer ]; then
100+
if [ -f /etc/systemd/system/dappnode-dns.timer ] || [ -f /etc/systemd/system/dappnode-dns.service ] || [ -f /usr/local/bin/dappnode-dns.sh ]; then
101101
echo "Removing dappnode-dns systemd timer and service..."
102102
systemctl disable dappnode-dns.timer 2>/dev/null || true
103103
systemctl stop dappnode-dns.timer 2>/dev/null || true

0 commit comments

Comments
 (0)