users in ini

merge-requests/273/head
papajoker 7 years ago
parent d03af7ce48
commit c47038c32d

@ -727,6 +727,13 @@ create_new_user() {
DIALOG " $_ConfUsrNew " --infobox "$_NUsrSetBody" 0 0
sleep 2
local list=$(ini linux.users)
[[ -n "$list" ]] && list="${list};"
ini linux.users "${list}${USER}"
list=$(ini linux.shells)
[[ -n "$list" ]] && list="${list};"
ini linux.shells "${list}${shell}"
# Create the user, set password, then remove temporary password file
arch_chroot "groupadd ${USER}"
arch_chroot "useradd ${USER} -m -g ${USER} -G wheel,storage,power,network,video,audio,lp -s $shell" 2>$ERR

@ -113,7 +113,7 @@ ini() {
if [[ ! "$section" =~ \. ]]; then
section="manjaro-architect.${section}"
fi
ini_val "$INIFILE" "$section" "$value" &>/dev/null
ini_val "$INIFILE" "$section" "$value" 2>/dev/null
}
function finishini {

Loading…
Cancel
Save