[debian-edu-commits] debian-edu/ 04/05: debian/educlient.postinst: Bail out if Linux distro and/or version is not supported.
Mike Gabriel
sunweaver at debian.org
Fri Oct 9 04:04:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch multi-distro-support
in repository educlient.
commit acb934c0f3b769d4c42e3ccfb8ef1b665dfcbf53
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Oct 9 06:00:08 2015 +0200
debian/educlient.postinst: Bail out if Linux distro and/or version is not supported.
---
debian/educlient.postinst | 5 +++++
etc-distrib/Debian/7/.placeholder | 0
etc-distrib/Debian/8/.placeholder | 0
etc-distrib/Debian/unstable/.paceholder | 0
etc-distrib/LinuxMint/17.1/.placeholder | 0
etc-distrib/Ubuntu/12.04/.placeholder | 0
etc-distrib/Ubuntu/14.04/.placeholder | 0
7 files changed, 5 insertions(+)
diff --git a/debian/educlient.postinst b/debian/educlient.postinst
index eb0a191..7263d40 100755
--- a/debian/educlient.postinst
+++ b/debian/educlient.postinst
@@ -40,6 +40,11 @@ ETC_DISTRIB_VERSION="/usr/share/educlient/etc-distrib/${DISTRIB_ID}/${DISTRIB_RE
ETC_DISTRIB_COMMON="/usr/share/educlient/etc-distrib/${DISTRIB_ID}/common"
ETC_COMMON="/usr/share/educlient/etc-common"
+if [ ! -d ${ETC_DISTRIB_VERSION} ]; then
+ echo "This Linux distribution and/or version (${DISTRIB_ID} ${DISTRIB_RELEASE} is not supported by this package."
+ exit 0
+fi
+
mkdir -p /etc/debian-edu
echo "" > /etc/debian-edu/educlient.files-diverted
echo "" > /etc/debian-edu/educlient.files-added
diff --git a/etc-distrib/Debian/7/.placeholder b/etc-distrib/Debian/7/.placeholder
new file mode 100644
index 0000000..e69de29
diff --git a/etc-distrib/Debian/8/.placeholder b/etc-distrib/Debian/8/.placeholder
new file mode 100644
index 0000000..e69de29
diff --git a/etc-distrib/Debian/unstable/.paceholder b/etc-distrib/Debian/unstable/.paceholder
new file mode 100644
index 0000000..e69de29
diff --git a/etc-distrib/LinuxMint/17.1/.placeholder b/etc-distrib/LinuxMint/17.1/.placeholder
new file mode 100644
index 0000000..e69de29
diff --git a/etc-distrib/Ubuntu/12.04/.placeholder b/etc-distrib/Ubuntu/12.04/.placeholder
new file mode 100644
index 0000000..e69de29
diff --git a/etc-distrib/Ubuntu/14.04/.placeholder b/etc-distrib/Ubuntu/14.04/.placeholder
new file mode 100644
index 0000000..e69de29
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/educlient.git
More information about the debian-edu-commits
mailing list