Allow installing the .deb package on other systems (not Debian/Ubuntu), but don't install the package source there (i.e. no automatic updates)

This commit is contained in:
Sebastian Messmer 2016-04-28 15:30:35 -07:00
parent a03ab91aba
commit 9864a95570
1 changed files with 2 additions and 13 deletions

View File

@ -6,9 +6,6 @@
set -e
DEBIAN_VERSIONS="jessie"
UBUNTU_VERSIONS="precise trusty vivid wily xenial"
DEBIAN_REPO_URL="http://apt.cryfs.org/debian"
UBUNTU_REPO_URL="http://apt.cryfs.org/ubuntu"
@ -23,20 +20,12 @@ containsElement () {
get_repo_url () {
if [[ "$DISTRIBUTION" == "Debian" ]] || [[ "$DISTRIBUTION" == "Devuan" ]]; then
if ! containsElement $DISTRIBUTION_VERSION $DEBIAN_VERSIONS; then
echo Unsupported Debian Version: $DISTRIBUTION_VERSION 1>&2
exit 1
fi
echo $DEBIAN_REPO_URL
elif [[ "$DISTRIBUTION" == "Ubuntu" ]]; then
if ! containsElement $DISTRIBUTION_VERSION $UBUNTU_VERSIONS; then
echo Unsupported Ubuntu Version: $DISTRIBUTION_VERSION 1>&2
exit 1
fi
echo $UBUNTU_REPO_URL
else
echo Unsupported Operating System: $DISTRIBUTION 1>&2
exit 1
echo Not adding package source because $DISTRIBUTION is not supported. Please keep CryFS manually up to date. 1>&2
exit 0
fi
}