Fix for ubuntu support
This commit is contained in:
parent
596337836c
commit
bdcc9fcca6
@ -25,7 +25,7 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ${VERSION_CODENAME} == "bullseye" ]] || [[ ${VERSION_CODENAME} == "bookworm" ]]; then
|
||||
if [[ ${VERSION_CODENAME} == "bullseye" ]] || [[ ${VERSION_CODENAME} == "bookworm" ]] || [[ ${VERSION_CODENAME} == "jammy" ]] || [[ ${VERSION_CODENAME} == "lunar" ]]; then
|
||||
echo "Your distro $ID ${VERSION_CODENAME} is supported."
|
||||
else
|
||||
echo "Your distro $ID ${VERSION_CODENAME} is not supported."
|
||||
@ -82,6 +82,8 @@ whiptail --title "Possible data loss!" \
|
||||
--yesno "Would you like to preserve you existing ZFS data from a previous installation?" 10 75
|
||||
FORMAT=$?
|
||||
|
||||
if [[ $ID == "debian" ]]; then
|
||||
|
||||
# pin cockpit to buster backports
|
||||
echo "Configure apt to install cockpit from backports repo"
|
||||
cat << EOF | tee -i /etc/apt/preferences.d/99-cockpit
|
||||
@ -96,7 +98,8 @@ if [ $? -gt 0 ]; then
|
||||
fi
|
||||
|
||||
echo "Add debian ${VERSION_CODENAME} backports repo"
|
||||
echo "deb http://ftp.de.debian.org/debian/ ${VERSION_CODENAME}-backports main contrib non-free" | tee -i /etc/apt/sources.list.d/bulleye-backports.list
|
||||
echo "deb http://ftp.de.debian.org/debian/ ${VERSION_CODENAME}-backports main contrib non-free" | tee -i /etc/apt/sources.list.d/${VERSION_CODENAME}-backports.list
|
||||
fi
|
||||
|
||||
# update system and install packages
|
||||
echo "Updating package lists"
|
||||
|
Loading…
Reference in New Issue
Block a user