arch-automated-installer/system-setup.sh
Rodolfo cddaeacbe4 Update: debian-sid sources
- Add debian-sid-sources.list added to debian-assets
- Modify system-setup.sh to overwrite the sources.list
2024-06-25 02:09:35 +08:00

35 lines
912 B
Bash
Executable file

#!/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
# 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
elif [[ ! -z $PACMAN_CMD ]]; then
echo "Arch"
fi