scripts: use codenames for ubuntu, since that's what our repo uses.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/1932/head
David Anderson 4 years ago
parent 01a359cec9
commit 783f125003

@ -33,7 +33,7 @@ main() {
case "$ID" in case "$ID" in
ubuntu) ubuntu)
OS="$ID" OS="$ID"
VERSION="$VERSION_ID" VERSION="$VERSION_CODENAME"
PACKAGETYPE="apt" PACKAGETYPE="apt"
;; ;;
debian) debian)
@ -157,12 +157,12 @@ main() {
OS_UNSUPPORTED= OS_UNSUPPORTED=
case "$OS" in case "$OS" in
ubuntu) ubuntu)
if [ "$VERSION" != "16.04" ] && \ if [ "$VERSION" != "xenial" ] && \
[ "$VERSION" != "18.04" ] && \ [ "$VERSION" != "bionic" ] && \
[ "$VERSION" != "19.10" ] && \ [ "$VERSION" != "eoan" ] && \
[ "$VERSION" != "20.04" ] && \ [ "$VERSION" != "focal" ] && \
[ "$VERSION" != "20.10" ] && \ [ "$VERSION" != "groovy" ] && \
[ "$VERSION" != "21.04" ] [ "$VERSION" != "hirsute" ]
then then
OS_UNSUPPORTED=1 OS_UNSUPPORTED=1
fi fi

Loading…
Cancel
Save