arch-automated-installer/system-setup.sh

35 lines
912 B
Bash
Raw Normal View History

2024-06-24 16:55:52 +00:00
#!/bin/bash
APT_CMD=$(which apt-get)
PACMAN_CMD=$(which pacman)
if [[ ! -z $APT_CMD ]]; then
echo "System Identified: Debian"
# Make sure System is Updated
echo "apt-get update && apt-get upgrade -Y"
#apt update && apt upgrade -Y
2024-06-24 16:55:52 +00:00
# Setup apt sources
while true;do
read -rp "Would you like to use Debian Unstable? (y/n): " answer
answer="${answer,,}"
if [[ "$answer" = "y" ]]; then
echo "Change apt sources"
echo "cp -v ./debian-assets/debian-sid-sources.list /etc/sources.list"
echo "apt-get update && apt-get upgrade -Y"
break
elif [[ "$answer" = "n" ]]; then
echo "Proceeding with Debian Stable"
break
else
echo "Invalid Input. Please enter 'y' or 'n'."
fi
done
# Start System Setup
2024-06-24 16:55:52 +00:00
elif [[ ! -z $PACMAN_CMD ]]; then
echo "Arch"
fi