👷 add missing group

This commit is contained in:
Vladislav Nepogodin 2022-02-27 23:28:43 +04:00
parent f2f63a05b8
commit 80baab70e4
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -472,6 +472,7 @@ void create_new_user() noexcept {
#ifdef NDEVENV
// Create the user, set password, then remove temporary password file
utils::arch_chroot("groupadd sudo", false);
utils::arch_chroot(fmt::format(FMT_COMPILE("groupadd {}"), user), false);
utils::arch_chroot(fmt::format(FMT_COMPILE("useradd {0} -m -g {0} -G sudo,storage,power,network,video,audio,lp,sys,input -s {1}"), user, shell), false);
spdlog::info("add user to groups");