drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amansi...@apache.org
Subject [2/3] drill git commit: DRILL-6103: lsb_release: command not found
Date Sat, 31 Mar 2018 19:47:40 GMT
DRILL-6103: lsb_release: command not found

close apache/drill#1191

Thanks to Sanel Zukan for providing a small patch that checks for /etc/fedora-release path.
This is more common, than lsb_release command on Linux distros.


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/f5b82239
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/f5b82239
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/f5b82239

Branch: refs/heads/master
Commit: f5b82239ad823a972e32ea732237a2e8c4346db3
Parents: 4ee5625
Author: Kunal Khatua <kkhatua@maprtech.com>
Authored: Mon Mar 26 23:30:31 2018 -0700
Committer: Aman Sinha <asinha@maprtech.com>
Committed: Fri Mar 30 22:46:36 2018 -0700

----------------------------------------------------------------------
 distribution/src/resources/drill-config.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/f5b82239/distribution/src/resources/drill-config.sh
----------------------------------------------------------------------
diff --git a/distribution/src/resources/drill-config.sh b/distribution/src/resources/drill-config.sh
index e3eaa64..c2f3d70 100644
--- a/distribution/src/resources/drill-config.sh
+++ b/distribution/src/resources/drill-config.sh
@@ -421,8 +421,7 @@ CP="$CP:$DRILL_HOME/jars/classb/*"
 if [[ "$OSTYPE" == "linux-gnu" ]]; then
   # Linux
   # check for Fedora. netty-tcnative has a Fedora variant
-  linuxvariant=$(lsb_release -i | cut -d: -f2 | sed s/'^\t'//)
-  if [[ "$linuxvariant" == "Fedora" ]]; then
+  if [[ -f "/etc/fedora-release" ]]; then
     CP="$CP:$DRILL_HOME/jars/3rdparty/fedora/*"
   else
     CP="$CP:$DRILL_HOME/jars/3rdparty/linux/*"


Mime
View raw message