Sha256: 5c74e372487bf618ff76c03fd39e64d20770f664343d0ec682de7da2b2ed5f2f
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
#!/bin/sh has_app() { hash $1 2>/dev/null } delete_group() { if has_app groupdel; then groupdel $1 elif has_app delgroup; then delgroup $1 else echo Failed to delete a group, no supported group management utils found exit 1 fi } delete_user() { if has_app userdel; then userdel $1 elif has_app deluser; then deluser $1 else echo Failed to delete a user, no supported user management utils found exit 1 fi }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbld-1.0.0 | cli/lib/bootstrap/re-build-bootstrap-utils |