disable version checks for createrepo servers
This commit is contained in:
52
installJRMC
52
installJRMC
@@ -345,32 +345,34 @@ getLatestVersion() {
|
|||||||
# Peg older versions to prevent ABI and dependency mismatches in automatic mode
|
# Peg older versions to prevent ABI and dependency mismatches in automatic mode
|
||||||
# This can be overriden w/ --mcversion
|
# This can be overriden w/ --mcversion
|
||||||
# TODO need user input here
|
# TODO need user input here
|
||||||
if [[ "$ID" == "ubuntu" ]]; then
|
if ! [[ -v _createrepo ]]; then # disable version checks for createrepo servers
|
||||||
# [[ "$VERSION_CODENAME" =~ ^(focal|groovy|hirsute|impish)$ ]] && \
|
if [[ "$ID" == "ubuntu" ]]; then
|
||||||
# _base="bullseye"
|
# [[ "$VERSION_CODENAME" =~ ^(focal|groovy|hirsute|impish)$ ]] && \
|
||||||
[[ "$VERSION_CODENAME" =~ ^(cosmic|disco|eoan)$ ]] && \
|
# _base="bullseye"
|
||||||
_base="buster"
|
[[ "$VERSION_CODENAME" =~ ^(cosmic|disco|eoan)$ ]] && \
|
||||||
[[ "$VERSION_CODENAME" =~ ^(xenial|yakkety|zesty|artful|bionic)$ ]] && \
|
_base="buster"
|
||||||
_mcversion="26.0.107"
|
[[ "$VERSION_CODENAME" =~ ^(xenial|yakkety|zesty|artful|bionic)$ ]] && \
|
||||||
[[ "$VERSION_CODENAME" =~ ^(trusty|utopic|vivid|wily)$ ]] && \
|
_mcversion="26.0.107"
|
||||||
_mcversion="26.0.107"
|
[[ "$VERSION_CODENAME" =~ ^(trusty|utopic|vivid|wily)$ ]] && \
|
||||||
elif [[ "$ID" == "debian" ]]; then
|
_mcversion="26.0.107"
|
||||||
_base="$VERSION_CODENAME"
|
elif [[ "$ID" == "debian" ]]; then
|
||||||
[[ $VERSION_ID -eq 10 ]] && \
|
_base="$VERSION_CODENAME"
|
||||||
_base="buster"
|
[[ $VERSION_ID -eq 10 ]] && \
|
||||||
[[ $VERSION_ID -le 9 ]] && \
|
_base="buster"
|
||||||
_mcversion="26.0.107" # For 9 and 8
|
[[ $VERSION_ID -le 9 ]] && \
|
||||||
elif [[ "$ID" == "centos" ]]; then
|
_mcversion="26.0.107" # For 9 and 8
|
||||||
[[ "$VERSION_ID" -eq "8" ]] && \
|
elif [[ "$ID" == "centos" ]]; then
|
||||||
_base="buster"
|
[[ "$VERSION_ID" -eq "8" ]] && \
|
||||||
[[ "$VERSION_ID" -lt "8" ]] && \
|
_base="buster"
|
||||||
_mcversion="26.0.107" # Doubtful
|
[[ "$VERSION_ID" -lt "8" ]] && \
|
||||||
fi
|
_mcversion="26.0.107" # Doubtful
|
||||||
|
fi
|
||||||
|
|
||||||
[[ -v _mcversion ]] && \
|
[[ -v _mcversion ]] && \
|
||||||
_version_source="compatibility lookup" && \
|
_version_source="compatibility lookup" && \
|
||||||
debug "To override, use --mcversion" && \
|
debug "To override, use --mcversion" && \
|
||||||
return 0
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Use a containerized package manager
|
# Use a containerized package manager
|
||||||
# TODO but how to determine build distro ($_base=buster)?
|
# TODO but how to determine build distro ($_base=buster)?
|
||||||
|
|||||||
Reference in New Issue
Block a user