Changeset 0c81d51 for debian


Ignore:
Timestamp:
Jan 7, 2012 12:20:43 AM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
56a6772
Parents:
5067499f
Message:

Debian: Fix postinst script

On systems without an i2psvc group, the postinstall would fail. This change

will add the group if it doesn't exist. Also adding "
true" to the usermod

command in case the command returns a non-zero status.

Location:
debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • debian/changelog

    r5067499f r0c81d51  
    1 i2p (0.8.12-1) stable; urgency=medium
     1i2p (0.8.12-2) stable; urgency=low
     2
     3  * postinst: Don't fail if the i2psvc group doesn't exist
     4
     5 -- Kill Your TV <killyourtv@i2pmail.org>  Fri, 06 Jan 2012 18:43:09 +0000
     6
     7i2p (0.8.12-1) stable; urgency=low
    28
    39  * New upstream I2P release
     
    511    - add wrapper.java.maxmemory from wrapper.config
    612    - The warning about the daemon user needing to exist was confusing to some
    7       that assumed this meant that i2psvc had to exist. This warning has been
     13      that assumed this meant that i2psvc had to exit. This warning has been
    814      clarified.
    915    - Spanish, Swedish, Ukrainian translation updates
     
    1420    - move I2PTEMP to /tmp/i2p-daemon
    1521    - move router.ping to /var/run/i2p
    16     - chown /var/log/i2p to i2psvc:i2psvc instead of i2psvc:adm
    1722    - various other clean-ups
    1823    - explicity redirect errors to stderr
     
    2126    - postrm: remove /etc/default/i2p if the package is purged
    2227
    23  -- Kill Your TV <killyourtv@i2pmail.org>  Thu, 05 Jan 2012 00:00:00 +0000
     28 -- Kill Your TV <killyourtv@i2pmail.org>  Fri, 06 Jan 2012 02:49:03 +0000
    2429
    2530i2p (0.8.11-2) stable; urgency=medium
  • debian/i2p.postinst

    r5067499f r0c81d51  
    6464    # Create user and group as a system user.
    6565    if getent passwd i2psvc > /dev/null 2>&1 ; then
     66        groupadd -f $I2PSYSUSER || true
    6667        usermod -c "I2P Router Daemon" -d $I2PHOME -g $I2PSYSUSER -s "/bin/false" \
    67             $I2PSYSUSER -e 1 > /dev/null 2>&1
     68            $I2PSYSUSER -e 1 > /dev/null 2>&1 || true
    6869    else
    6970        adduser --system --quiet --group --home $I2PHOME $I2PSYSUSER
     
    7172
    7273    [ -d /var/log/i2p ] || mkdir -m0750 /var/log/i2p
    73     chown -f -R $I2PSYSUSER:adm /var/log/i2p
     74    chown -f -R $I2PSYSUSER:i2psvc /var/log/i2p
    7475
    7576    # Has someone set the permissions with dpkg-statoverride? If so, obey them.
Note: See TracChangeset for help on using the changeset viewer.