fix some bugs
This commit is contained in:
parent
87a10b32c6
commit
a87187e102
@ -4,7 +4,7 @@ UEFI_DISK="/dev/sdb"
|
|||||||
DISK="/dev/sdb"
|
DISK="/dev/sdb"
|
||||||
|
|
||||||
USERNAME="laila"
|
USERNAME="laila"
|
||||||
USER_SSH_KEYS="nl.freenen.elfDesktop nl.freenen.digipap.rsa nl.freenen.fp4.ed"
|
USER_SSH_KEYS="nl.lailatheelf.elfDesktop nl.freenen.digipap.rsa nl.freenen.fp4.ed"
|
||||||
|
|
||||||
ENCRYPT_DISK="true"
|
ENCRYPT_DISK="true"
|
||||||
SFDISK_FILE="./configs/elfLaptop.sfdisk"
|
SFDISK_FILE="./configs/elfLaptop.sfdisk"
|
||||||
|
|||||||
@ -184,7 +184,7 @@ echo
|
|||||||
run-chroot "add .ssh dir to skel" "mkdir -p /etc/skel/.ssh"
|
run-chroot "add .ssh dir to skel" "mkdir -p /etc/skel/.ssh"
|
||||||
run-chroot "create admin group" "groupadd admin"
|
run-chroot "create admin group" "groupadd admin"
|
||||||
run-chroot "create user" "useradd --home-dir /home/${USERNAME} --create-home --skel /etc/skel ${USERNAME} --groups admin"
|
run-chroot "create user" "useradd --home-dir /home/${USERNAME} --create-home --skel /etc/skel ${USERNAME} --groups admin"
|
||||||
arch-chroot /mnt bash -c "echo \"${USERNAME}:\$PASS_USER\" | chpasswd" # don't log the password
|
arch-chroot /mnt bash -c "echo \"${USERNAME}:${PASS_USER}\" | chpasswd" # don't log the password
|
||||||
run-chroot "add user to sudoers" "echo \"%admin ALL=(ALL:ALL) ALL\" >>/etc/sudoers"
|
run-chroot "add user to sudoers" "echo \"%admin ALL=(ALL:ALL) ALL\" >>/etc/sudoers"
|
||||||
run "clone keys repo" "git clone https://gitea.finnvanreenen.nl/LailaTheElf/keys.git /mnt/opt/keys"
|
run "clone keys repo" "git clone https://gitea.finnvanreenen.nl/LailaTheElf/keys.git /mnt/opt/keys"
|
||||||
run-chroot "create authoized keys" "cd /opt/keys/ssh && cat ${USER_SSH_KEYS} > /home/${USERNAME}/.ssh/authorized_keys"
|
run-chroot "create authoized keys" "cd /opt/keys/ssh && cat ${USER_SSH_KEYS} > /home/${USERNAME}/.ssh/authorized_keys"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user