mirror of
https://github.com/apache/jclouds.git
synced 2025-02-22 10:29:37 +00:00
On SUSE, the “-f” force option is not available for groupadd, so `groupadd -f wheel` returns exit code 9 if the group already exists. To avoid this, first check if the group exists. In normal usage, this doesn’t matter: the script continues with the next command anyway. However, if the statements generated by UserAdd or AdminAccess are used outside of that context (e.g. by code external to jclouds), then this can cause them to fail.