Changeset 22cb45a


Ignore:
Timestamp:
Sep 13, 2011 9:36:41 PM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
2fa63f8
Parents:
8ddc34d
Message:

Add explicit "install as a service" support for Debian and its derivatives

The upstream script has support for Ubuntu but not Debian. This change allows
the same methods used for Ubuntu to be used for Debian. This *should* work for
any version of Linux that has Debian in its family tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/resources/i2prouter

    r8ddc34d r22cb45a  
    11371137                    insserv "/etc/init.d/$APP_NAME"
    11381138                fi
    1139             elif [ -f /etc/lsb-release ] ; then
    1140                 eval echo `gettext 'Detected Ubuntu:'`
     1139            elif [ -f /etc/lsb-release -o -f /etc/debian_version ] ; then
     1140                eval echo `gettext 'Detected Debian-based distribution:'`
    11411141                if [ -f "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then
    11421142                    eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'`
     
    13291329                    exit 1
    13301330                fi
    1331             elif [ -f /etc/lsb-release ] ; then
    1332                 eval echo `gettext 'Detected Ubuntu:'`
     1331            elif [ -f /etc/lsb-release -o -f /etc/debian_version ] ; then
     1332                eval echo `gettext 'Detected Debian-based distribution:'`
    13331333                if [ -f "/etc/init.d/$APP_NAME" ] ; then
    13341334                    eval echo `gettext ' Removing $APP_LONG_NAME daemon from init.d...'`
Note: See TracChangeset for help on using the changeset viewer.