diff options
author | ramon <ramongomez@us.es> | 2014-07-08 11:47:54 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2014-07-08 11:47:54 +0000 |
commit | eeb438a111c19ac28cacff08459a1b9a5e4d99e9 (patch) | |
tree | 36e85eda54968949c5c70b986bae6dc1dbdff9e5 /admin/Sources/Services | |
parent | eb7b39dc1d44f7ffa5c2c0a51dbc23577a17ee1d (diff) |
#547: Adaptar detección de distribución GNU/Linux en scripts de instalación y de arranque/parada de procesos.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4326 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Sources/Services')
-rwxr-xr-x | admin/Sources/Services/opengnsys.init | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/admin/Sources/Services/opengnsys.init b/admin/Sources/Services/opengnsys.init index 359a3166..2912811e 100755 --- a/admin/Sources/Services/opengnsys.init +++ b/admin/Sources/Services/opengnsys.init @@ -82,12 +82,13 @@ fi config() { if [ -f /etc/os-release ]; then source /etc/os-release - OSDISTRIB="$NAME" + OSDISTRIB="$ID" else OSDISTRIB=$(lsb_release -is 2>/dev/null) fi + OSDISTRIB="${OSDISTRIB,,}" case "$OSDISTRIB" in - Ubuntu|Debian|LinuxMint) + ubuntu|debian|linuxmint) INITFUNCTIONS=/lib/lsb/init-functions DAEMONSTART="start-stop-daemon --start --quiet --background --exec" EXTRAOPTS="--" @@ -101,7 +102,7 @@ config() { SEEDERSTART="start-stop-daemon --make-pidfile --pidfile $BTSEEDERPID --start --quiet --background --exec" SEEDERSTOP="start-stop-daemon --stop --quiet --oknodo --pidfile $BTSEEDERPID" ;; - CentOS|Fedora) + centos|fedora) INITFUNCTIONS=/etc/init.d/functions DAEMONSTART="daemon" ENDOPTS="&" |