Remove '_sourcezap' group in 'sourcezap teardown'
This commit is contained in:
parent
81b163dd25
commit
59b3f3ed30
1 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue