From be6db821368f3d9be8c226d8dc2b292ec1135edb Mon Sep 17 00:00:00 2001 From: amolinae06 Date: Fri, 16 May 2025 23:00:11 -0600 Subject: [PATCH] fixed issues --- installer.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/installer.sh b/installer.sh index 46728df..d65e24e 100755 --- a/installer.sh +++ b/installer.sh @@ -13,7 +13,7 @@ git_install(){ } deploy_dotfiles(){ - printf "Deploying dotfiles..." + printf "Deploying dotfiles...\n" su - $user -c "git clone $dotfiles && cd dotfiles && rm -rf .git README.md && cp -r .* $HOME && cd && rm -rf dotfiles" } @@ -25,11 +25,14 @@ read_software(){ *) echo "ERROR: failed to determine $NAME."; exit 1 ;; esac done - printf "Successfully installed all software!" + printf "Successfully installed all software!\n" } setup_greetd(){ - printf "Setting up greetd" + printf "Setting up greetd\n" + + [ -d "/etc/greetd" ] && printf "greetd directory exists" || mkdir "/etc/greetd" + cat < /etc/greetd/config.toml [terminal] vt = 7 @@ -38,8 +41,9 @@ vt = 7 command = "tuigreet -t -r --cmd /home/$user/.local/bin/dwmlaunch" user = "greetd" EOF + rc-update add greetd default - printf "Finished setting up greetd." + printf "Finished setting up greetd.\n" } setup_shell(){ @@ -48,9 +52,9 @@ setup_shell(){ } setup_bluetooth(){ - printf "Setting up bluetooth" + printf "Setting up bluetooth\n" rc-update add bluetooth default - printf "Done." + printf "Done.\n" } setup_home(){ @@ -69,7 +73,7 @@ setup_chroot(){ mount -t proc none alpchroot/proc mount -o bind /sys alpchroot/sys cp -L /etc/resolv.conf alpchroot/etc/ - chown + chown -R "$user":"$user" alpchroot/ mkdir -p alpchroot/etc/apk echo "https://dl-cdn.alpinelinux.org/alpine/latest-stable/main" > alpchroot/etc/apk/repositories apk del curl @@ -96,4 +100,4 @@ read_software deploy_dotfiles setup_greetd setup_shell -setup_bluetooth +setup_bluetooth \ No newline at end of file