diff options
author | Freya Murphy <freya@freyacat.org> | 2024-12-10 21:15:14 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-12-10 21:15:14 -0500 |
commit | 48edfadc673cf44e29a8d8d9d52d9338898102df (patch) | |
tree | 685bb2887fb0f10a845c3b1f2d0e7e937bfd22b8 /installer/guix-password | |
parent | add certbot to cuirass (diff) | |
download | dotfiles-guix-48edfadc673cf44e29a8d8d9d52d9338898102df.tar.gz dotfiles-guix-48edfadc673cf44e29a8d8d9d52d9338898102df.tar.bz2 dotfiles-guix-48edfadc673cf44e29a8d8d9d52d9338898102df.zip |
rewrite guix installer
Diffstat (limited to '')
-rwxr-xr-x | installer/guix-password | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/installer/guix-password b/installer/guix-password deleted file mode 100755 index a39c566..0000000 --- a/installer/guix-password +++ /dev/null @@ -1,51 +0,0 @@ -#!/run/current-system/profile/bin/bash - -USER_PASSWORD="" -ROOT_PASSWORD="" - -source ./guix-env -source ./guix-log - -get_root_password() { - read -s -p "Root password: " PASSWORD - printf "\n" - read -s -p "Confirm password: " PASSWORD_CONFIRM - printf "\n" - if [ "$PASSWORD" == "$PASSWORD_CONFIRM" ]; then - ROOT_PASSWORD=$PASSWORD - return - else - ERROR "Passwords do not match" - get_root_password - fi -} - -get_user_password() { - read -s -p "User password: " PASSWORD - printf "\n" - read -s -p "Confirm password: " PASSWORD_CONFIRM - printf "\n" - if [ "$PASSWORD" == "$PASSWORD_CONFIRM" ]; then - USER_PASSWORD=$PASSWORD - return - else - ERROR "Passwords do not match" - get_user_password - fi -} - -EVENT "Setup /etc/shadow for root and user" - -get_root_password -get_user_password - -cat << EOF | chroot /mnt -passwd -$ROOT_PASSWORD -$ROOT_PASSWORD -passwd freya -$USER_PASSWORD -$USER_PASSWORD -EOF - -EVENT "Successfully set passwords" |