Remove '_sourcezap' group in 'sourcezap teardown'

This commit is contained in:
0x1eef 2024-08-16 20:03:19 -03:00
parent 81b163dd25
commit 59b3f3ed30

View file

@ -15,8 +15,9 @@ user=_sourcezap
##
# main
if [ "$(id -u)" = "0" ]; then
pw userdel -n "${user}"
rm -rf /home/"${user}"/
pw userdel -n "${user}" || true
pw groupdel -n "${user}" || true
rm -rf /home/"${user}"/ || true
printok "done"
else
printerr "you must be root"