From 317f75527a25f7c8a13824088723d515d9c59b68 Mon Sep 17 00:00:00 2001
From: Martin Kofahl <martin.kofahl@gmail.com>
Date: Wed, 15 Jun 2016 15:01:43 +0000
Subject: [PATCH] OPENDJ-3132 init script: detection of Debian 8 fails

---
 opendj-packages/resources/sysv/opendj |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/opendj-packages/resources/sysv/opendj b/opendj-packages/resources/sysv/opendj
index 9118a7f..579d1dc 100644
--- a/opendj-packages/resources/sysv/opendj
+++ b/opendj-packages/resources/sysv/opendj
@@ -45,8 +45,9 @@
     # SuSE
     . /etc/rc.status
     LOCKFILE=/var/run/rcopendj
-elif [ -f /etc/lsb-release ] ; then
+elif [ -f /etc/lsb-release ] || lsb_release -a >/dev/null 2>&1 ; then
     # Debian
+    # On Debian 8 the file /etc/lsb-release does not exist. The lsb_release command may be used instead.
     . /lib/lsb/init-functions
     LOCKFILE=/var/lock/opendj
 elif [ -f /etc/init.d/functions.sh ] ; then

--
Gitblit v1.10.0