[users] FreeBSD support creating groups

This commit is contained in:
Adriaan de Groot 2020-07-27 13:18:09 +02:00
parent b99b87f787
commit 1fddf723fe

View File

@ -81,7 +81,11 @@ ensureGroupsExistInTarget( const QStringList& wantedGroups, const QStringList& a
{
if ( !availableGroups.contains( group ) )
{
#ifdef __FreeBSD__
CalamaresUtils::System::instance()->targetEnvCall( { "pw", "groupadd", "-n", group } );
#else
CalamaresUtils::System::instance()->targetEnvCall( { "groupadd", group } );
#endif
}
}
}