mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[build] Remove user before group
This commit is contained in:
parent
b54ef4ed00
commit
144a40b780
1 changed files with 4 additions and 4 deletions
|
@ -34,13 +34,13 @@ case $1 in
|
|||
esac
|
||||
|
||||
if [ "$REMOVE_USER_AND_GROUP" = "true" ]; then
|
||||
if getent group "<%= group %>" >/dev/null; then
|
||||
groupdel "<%= group %>"
|
||||
fi
|
||||
|
||||
if getent passwd "<%= user %>" >/dev/null; then
|
||||
userdel "<%= user %>"
|
||||
fi
|
||||
|
||||
if getent group "<%= group %>" >/dev/null; then
|
||||
groupdel "<%= group %>"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$REMOVE_DIRS" = "true" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue