From 1c65fbb410aa75b8629820029e920bc3ffcc3a0d Mon Sep 17 00:00:00 2001 From: uubulb Date: Thu, 5 Dec 2024 13:32:19 +0800 Subject: [PATCH] fix: file extension --- agent/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/install.sh b/agent/install.sh index f8fc6d8..00ecbdc 100644 --- a/agent/install.sh +++ b/agent/install.sh @@ -182,7 +182,7 @@ install() { } uninstall() { - find "$NZ_AGENT_PATH" -type f -name "*config*" | while read -r file; do + find "$NZ_AGENT_PATH" -type f -name "*config*.yml" | while read -r file; do sudo "$NZ_AGENT_PATH/nezha-agent" service -c "$file" uninstall sudo rm "$file" done