diff options
Diffstat (limited to '')
-rwxr-xr-x | packaging/installer/netdata-uninstaller.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packaging/installer/netdata-uninstaller.sh b/packaging/installer/netdata-uninstaller.sh index 41ada623..5c8caeaf 100755 --- a/packaging/installer/netdata-uninstaller.sh +++ b/packaging/installer/netdata-uninstaller.sh @@ -158,7 +158,12 @@ portable_del_group() { # Linux if command -v groupdel 1>/dev/null 2>&1; then - run groupdel -f "${groupname}" && return 0 + if grep -q "${groupname}" /etc/group; then + run groupdel -f "${groupname}" && return 0 + else + echo >&2 "Group ${groupname} already removed in a previous step." + run_ok + fi fi # mac OS |