mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-25 17:34:22 +00:00
remove agent data directory on uninstall
This commit is contained in:
@@ -757,6 +757,9 @@ if [ "$UNINSTALL" = true ]; then
|
||||
echo "Removing the Beszel Agent directory..."
|
||||
rm -rf "$AGENT_DIR"
|
||||
|
||||
echo "Removing the Beszel Agent data directory..."
|
||||
rm -rf /var/lib/beszel-agent
|
||||
|
||||
echo "Removing the dedicated user for the agent service..."
|
||||
killall beszel-agent 2>/dev/null || true # Usually already stopped by the service manager.
|
||||
if id -u beszel >/dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user