Commit 8afa2af4 authored by Hugo Lefeuvre's avatar Hugo Lefeuvre Committed by Sébastien Blin

packaging: fix $VER typo in ring-all package

Change-Id: Idd8ce22d24d207363f1714279afb40a7dac9f753
Reviewed-by: Sébastien Blin's avatarSebastien Blin <sebastien.blin@savoirfairelinux.com>
parent 043d546e
......@@ -95,23 +95,12 @@ if [ -f /etc/os-release ]; then
. /etc/os-release
# Set-up Ring repository end tag
if [ "$ID" = "debian" ] && [ "$VER" = "9" ]; then
ENDTAG="${ID}_${VERSION_ID}"
elif [ "$ID" = "ubuntu" ] && [ "$VER" = "16.04" ]; then
ENDTAG="${ID}_${VERSION_ID}"
elif [ "$ID" = "ubuntu" ] && [ "$VER" = "17.04" ]; then
ENDTAG="${ID}_${VERSION_ID}"
elif [ "$ID" = "ubuntu" ] && [ "$VER" = "17.10" ]; then
ENDTAG="${ID}_${VERSION_ID}"
elif [ "$ID" = "ubuntu" ] && [ "$VER" = "18.04" ]; then
ENDTAG="${ID}_${VERSION_ID}"
elif [ "$ID" = "linuxmint" ] && [ "$UBUNTU_CODENAME" = "xenial" ]; then
if [ "${DEBIAN_CODENAME}" = "stretch" ] || [ "${ID}_${VERSION_ID}" = "debian_9" ]; then
ENDTAG="debian_9"
elif [ "${UBUNTU_CODENAME}" = "xenial" ] || [ "${ID}_${VERSION_ID}" = "ubuntu_16.04" ]; then
ENDTAG="ubuntu_16.04"
elif [ "$ID" = "linuxmint" ] && [ "$UBUNTU_CODENAME" = "bionic" ]; then
elif [ "${UBUNTU_CODENAME}" = "bionic" ] || [ "${ID}_${VERSION_ID}" = "ubuntu_18.04" ]; then
ENDTAG="ubuntu_18.04"
elif [ "$ID" = "linuxmint" ] && [ "$DEBIAN_CODENAME" = "stretch" ]; then
# LMDE3
ENDTAG="debian_9"
else
# Distribution is not supported. Don't provide automatic updates.
CAN_ADD_DEB_SOURCE=false
......@@ -132,7 +121,7 @@ case "$1" in
CAN_ADD_DEB_SOURCE=false
fi
if [ "$CAN_ADD_DEB_SOURCE" = "true" ]; then
if [ "${CAN_ADD_DEB_SOURCE}" = "true" ]; then
RING_REPO="${RING_REPO_BASE}/${ENDTAG}"
# We first add the key to the trusted keyring.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment