Commit b543c15c authored by Lucas Kanashiro's avatar Lucas Kanashiro

d/obs-server.postrm: check if group exists before remove it

For some reason purge obs-server package is failing due a non existence
of obsrun group reported by delgroup.
parent ce5db0fd
...@@ -13,7 +13,9 @@ if [ "$1" = "purge" ]; then ...@@ -13,7 +13,9 @@ if [ "$1" = "purge" ]; then
# Delete obs users and group # Delete obs users and group
deluser --system --quiet obsrun deluser --system --quiet obsrun
delgroup --system --quiet obsrun if getent group obsrun >/dev/null; then
delgroup --system --quiet obsrun
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment