Found useless groupdel in web-add.sh #4

Merged
Ghost merged 1 commits from groupdel-web-add into master 2018-11-29 18:35:17 +01:00
First-time contributor

Found while working on a support ticket.

Tested on my vm, the commit is pretty self-explanatory.

Found while working on a support ticket. Tested on my vm, the commit is pretty self-explanatory.
benpro was assigned by Ghost 2018-11-14 21:54:14 +01:00
Ghost added the
Script
Bug
labels 2018-11-14 21:54:14 +01:00
Contributor

It displayed The group 'name' does not exist.?

LGTM.

It displayed `The group 'name' does not exist.`? LGTM.
Author
First-time contributor

It would say userdel: group 'name' is the primary group of another user and is not removed.

This was fixed by adding a groupdel(1) after deleting the users, but it makes more sense to just delete the second user first. Thus making the logs cleaner, the script easier to read and it's execution more efficient.

It would say `userdel: group 'name' is the primary group of another user and is not removed.` This was fixed by adding a groupdel(1) after deleting the users, but it makes more sense to just delete the second user first. Thus making the logs cleaner, the script easier to read and it's execution more efficient.
Contributor

Understood! 👍

Understood! :+1:
Author
First-time contributor

@vlaborie do you have any objections to me merging this today?

@vlaborie do you have any objections to me merging this today?
Author
First-time contributor

LGTM

LGTM
Ghost closed this pull request 2018-11-29 18:35:17 +01:00
Ghost deleted branch groupdel-web-add 2018-11-29 18:35:25 +01:00
Sign in to join this conversation.
No description provided.