install.fairie/dotfiles/.local/bin/quickstart

21 lines
806 B
Text
Raw Normal View History

#!/usr/bin/env bash
if [ -f /etc/lightdm/lightdm.conf.bak ]; then
sudo mv /etc/lightdm/lightdm.conf.bak /etc/lightdm/lightdm.conf
fi
if [ -f ~/.config/autostart/first-boot.desktop ]; then
rm ~/.config/autostart/first-boot.desktop
fi
if type qvm-run &> /dev/null; then
2022-10-25 22:00:21 -07:00
mkdir -p "$HOME/.local"
qvm-run --pass-io sys-firewall 'curl -sSL https://install.doctor/qubes' > "$HOME/.local/setup.sh" && bash "$HOME/.local/setup.sh"
elif [ -d '/Applications' ] && [ -d '/Users' ] && [ -d '/Library' ]; then
mkdir -p "$HOME/.local"
curl -sSL https://install.doctor/quickstart > "$HOME/.local/setup.sh" && bash "$HOME/.local/setup.sh"
elif [ -f '/etc/os-release' ]; then
mkdir -p "$HOME/.local"
curl -sSL https://install.doctor/quickstart > "$HOME/.local/setup.sh" && bash "$HOME/.local/setup.sh"
fi