Skip to content

Commit

Permalink
Remove ns7admin user when leaving cluster in ns8-leave script
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Aug 13, 2024
1 parent fbb9255 commit dc104e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions root/usr/sbin/ns8-leave
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if [[ -n "${USER_DOMAIN}" ]] && [[ -z "${ACCOUNT_PROVIDER_EXTERNAL}" ]]; then
fi

if [[ -n "${NODE_ID}" ]]; then
ns8-action --detach cluster remove-user '{"user": "ns7admin"}' || :
ns8-action --detach cluster remove-node $(printf '{"node_id":%d}' "${NODE_ID}") || :
fi

Expand Down

0 comments on commit dc104e7

Please sign in to comment.