Skip to content

Commit

Permalink
Add OS CODENAME Switch for Linux Mint
Browse files Browse the repository at this point in the history
- Added OS CODENAME Switch for Linux Mint
  • Loading branch information
tmiland committed Oct 4, 2024
1 parent 7deacf2 commit 5f69eee
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion invidious_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,21 @@ install_docker() {
${SUDO} docker run hello-world
shopt -s nocasematch
elif [[ $(lsb_release -si) == "LinuxMint" ]]; then
OS_CODENAME=$(lsb_release -cs)
case $OS_CODENAME in
wilma )
OS_CODENAME=noble
;;
virginia|victoria|vera|Vanessa )
OS_CODENAME=jammy
;;
uma|ulyssa|ulyana )
OS_CODENAME=focal
;;
faye )
OS_CODENAME=bookworm
;;
esac
#Install packages to allow apt to use a repository over HTTPS:
${SUDO} ${INSTALL} \
apt-transport-https \
Expand All @@ -1012,7 +1027,7 @@ install_docker() {
# Add Docker’s official GPG key:
curl -fsSLk https://download.docker.com/linux/ubuntu/gpg |
${SUDO} gpg --dearmor -o /usr/share/keyrings/docker.gpg >/dev/null
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $OS_CODENAME stable" |
${SUDO} tee /etc/apt/sources.list.d/docker.list > /dev/null
# Update the apt package index:
${SUDO} ${UPDATE}
Expand Down

0 comments on commit 5f69eee

Please sign in to comment.