Update: debian-sid sources

- Add debian-sid-sources.list added to debian-assets
- Modify system-setup.sh to overwrite the sources.list
This commit is contained in:
Rodolfo 2024-06-25 02:09:35 +08:00
parent 02f8dc7c1e
commit cddaeacbe4
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,2 @@
deb http://deb.debian.org/debian/ sid main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ sid main contrib non-free non-free-firmware

View file

@ -4,7 +4,11 @@ APT_CMD=$(which apt-get)
PACMAN_CMD=$(which pacman) PACMAN_CMD=$(which pacman)
if [[ ! -z $APT_CMD ]]; then if [[ ! -z $APT_CMD ]]; then
echo "System Identified: Debian" 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 # Setup apt sources
while true;do while true;do
@ -12,6 +16,8 @@ if [[ ! -z $APT_CMD ]]; then
answer="${answer,,}" answer="${answer,,}"
if [[ "$answer" = "y" ]]; then if [[ "$answer" = "y" ]]; then
echo "Change apt sources" 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 break
elif [[ "$answer" = "n" ]]; then elif [[ "$answer" = "n" ]]; then
echo "Proceeding with Debian Stable" echo "Proceeding with Debian Stable"
@ -22,6 +28,7 @@ if [[ ! -z $APT_CMD ]]; then
done done
# Start System Setup # Start System Setup
elif [[ ! -z $PACMAN_CMD ]]; then elif [[ ! -z $PACMAN_CMD ]]; then
echo "Arch" echo "Arch"
fi fi