fixed issues
This commit is contained in:
parent
bfbd42b8bb
commit
be6db82136
1 changed files with 12 additions and 8 deletions
20
installer.sh
20
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 <<EOF > /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
|
Loading…
Add table
Add a link
Reference in a new issue