Fix for ubuntu support
This commit is contained in:
parent
596337836c
commit
bdcc9fcca6
@ -25,7 +25,7 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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."
|
echo "Your distro $ID ${VERSION_CODENAME} is supported."
|
||||||
else
|
else
|
||||||
echo "Your distro $ID ${VERSION_CODENAME} is not supported."
|
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
|
--yesno "Would you like to preserve you existing ZFS data from a previous installation?" 10 75
|
||||||
FORMAT=$?
|
FORMAT=$?
|
||||||
|
|
||||||
|
if [[ $ID == "debian" ]]; then
|
||||||
|
|
||||||
# pin cockpit to buster backports
|
# pin cockpit to buster backports
|
||||||
echo "Configure apt to install cockpit from backports repo"
|
echo "Configure apt to install cockpit from backports repo"
|
||||||
cat << EOF | tee -i /etc/apt/preferences.d/99-cockpit
|
cat << EOF | tee -i /etc/apt/preferences.d/99-cockpit
|
||||||
@ -96,7 +98,8 @@ if [ $? -gt 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Add debian ${VERSION_CODENAME} backports repo"
|
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
|
# update system and install packages
|
||||||
echo "Updating package lists"
|
echo "Updating package lists"
|
||||||
|
Loading…
Reference in New Issue
Block a user