Added jitsi, GoogleChrome and adoptopenjdk

adoptopenjdk provides backport of open jdk/jre 8
This commit is contained in:
Bram Prieshof
2020-10-22 14:06:37 +02:00
parent 3d81dc14bb
commit 969f8cbcdc

View File

@@ -117,4 +117,31 @@ redis () {
fi fi
} }
jitsi () {
if [ "$osrel" = "deb10" ] ; then
curl --retry 7 --retry-delay 5 -s https://download.jitsi.org/jitsi-key.gpg.key | apt-key add -
echo 'deb [trusted=yes] http://mirror.nxdi.nl/apt/jitsi/ stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
else
echo "$repo repository not available for this Distro"
fi
}
GoogleChrome () {
if [ "$osrel" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ]; then
curl -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/google-chrome.list
else
echo "$repo repository not available for this Distro"
fi
}
adoptopenjdk () {
if [ "$osrel" = "deb10" ] ; then
curl --retry 7 --retry-delay 5 -s https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -
echo 'deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ buster main' >> /etc/apt/sources.list.d/jforg-openjdk.list
else
echo "$repo repository not available for this Distro"
fi
}
type $repo &>/dev/null && $repo || echo "Repository $repo not found." type $repo &>/dev/null && $repo || echo "Repository $repo not found."