summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Services/opengnsys.init
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2014-06-12 12:40:31 +0000
committeririna <irinagomez@us.es>2014-06-12 12:40:31 +0000
commit637432648d714496b0637375fcc1d2cc5930a870 (patch)
tree1e194cf01d8025335266b064c979032fd336eb56 /admin/Sources/Services/opengnsys.init
parentae8358db327de5912fe40bcc9f9baf12ef72d279 (diff)
#616 Mejorar la compatibilidad de script de inicio del servicio en Fedora 20
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4300 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Sources/Services/opengnsys.init')
-rwxr-xr-xadmin/Sources/Services/opengnsys.init7
1 files changed, 6 insertions, 1 deletions
diff --git a/admin/Sources/Services/opengnsys.init b/admin/Sources/Services/opengnsys.init
index 19507b37..359a3166 100755
--- a/admin/Sources/Services/opengnsys.init
+++ b/admin/Sources/Services/opengnsys.init
@@ -80,7 +80,12 @@ fi
# Configuración de arranque según la distribución Linux usada.
config() {
- OSDISTRIB=$(lsb_release -is 2>/dev/null)
+ if [ -f /etc/os-release ]; then
+ source /etc/os-release
+ OSDISTRIB="$NAME"
+ else
+ OSDISTRIB=$(lsb_release -is 2>/dev/null)
+ fi
case "$OSDISTRIB" in
Ubuntu|Debian|LinuxMint)
INITFUNCTIONS=/lib/lsb/init-functions