feat(api): add uninstall script and enhance install script functionality
Build and Push EvoFirewall Docker Image / build-and-push (push) Successful in 1m45s
Build and Push EvoFirewall Docker Image / create-release (push) Skipped

- Introduced an uninstall script for agents, allowing users to easily remove the agent with a single command.
- Updated `install.sh` to quote configuration values for safety, ensuring compatibility with names containing spaces.
- Enhanced the installation process to include a warning if the uninstall script cannot be downloaded.
- Updated documentation to reflect the new uninstall functionality and changes in configuration file handling.
This commit is contained in:
Denozordec
2026-07-21 22:53:28 +07:00
parent d44f1113df
commit 38f7a8296e
5 changed files with 77 additions and 10 deletions
+1
View File
@@ -50,6 +50,7 @@ function isPublicPath(url: string): boolean {
if (path.startsWith('/v1/agent/enroll')) return true
if (path.startsWith('/v1/agent/install')) return true
if (path.startsWith('/v1/agent/sync-script')) return true
if (path.startsWith('/v1/agent/uninstall')) return true
if (path.startsWith('/v1/agent/mikrotik')) return true
return false
}