Found useless groupdel in web-add.sh #4

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

1 commit

Author SHA1 Message Date
Patrick Marchand 1a7a8e6d5d Inverse userdel(1) calls in scripts/web-add.sh
When a user has the same name as his primary group, userdel(1) tries
to remove it as well, but stops and prints an error message if that
group is being used by any other users as their primary group. By
deleting the www user first, the group is properly deleted. This
means we can get rid of the subsequent call to groupdel(1).

Tested by adding / removing a vhost on my testing vm.
2018-11-14 15:43:45 -05:00