fix some bugs

This commit is contained in:
Laila van Reenen 2025-01-20 15:36:56 +01:00
parent 87a10b32c6
commit a87187e102
Signed by: LailaTheElf
GPG Key ID: 8A3EF0226518C12D
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"