[users] FreeBSD support creating groups

main
Adriaan de Groot 5 years ago
parent b99b87f787
commit 1fddf723fe

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

Loading…
Cancel
Save