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
|
# main
|
||||||
if [ "$(id -u)" = "0" ]; then
|
if [ "$(id -u)" = "0" ]; then
|
||||||
pw userdel -n "${user}"
|
pw userdel -n "${user}" || true
|
||||||
rm -rf /home/"${user}"/
|
pw groupdel -n "${user}" || true
|
||||||
|
rm -rf /home/"${user}"/ || true
|
||||||
printok "done"
|
printok "done"
|
||||||
else
|
else
|
||||||
printerr "you must be root"
|
printerr "you must be root"
|
||||||
|
|
Loading…
Reference in a new issue