update git username
This commit is contained in:
parent
9ea8954413
commit
c25bc9a9a2
@ -1,3 +1,2 @@
|
|||||||
[Context]
|
[Context]
|
||||||
sockets=fallback-x11;wayland;x11
|
|
||||||
filesystems=xdg-download;!home;!host
|
filesystems=xdg-download;!home;!host
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
[Context]
|
[Context]
|
||||||
filesystems=!xdg-download;!xdg-run/app/com.discordapp.Discord;!/run/media;!/mnt;!/media;~/projects/freenen/kladjes
|
filesystems=!xdg-download;!xdg-run/app/com.discordapp.Discord;!/run/media;!/mnt;!/media;~/projects/lailatheelf/kladjes
|
||||||
|
|||||||
@ -50,7 +50,7 @@ fi
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "password for freenen: "
|
echo -n "password for $USERNAME: "
|
||||||
read -s PASS_USER
|
read -s PASS_USER
|
||||||
echo
|
echo
|
||||||
echo -n "retype password: "
|
echo -n "retype password: "
|
||||||
@ -185,7 +185,7 @@ 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/FReenen/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"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user