Changeset 5fe654e for debian


Ignore:
Timestamp:
Nov 13, 2010 5:55:34 PM (10 years ago)
Author:
HungryHobo <HungryHobo@…>
Branches:
master
Children:
8d2a75bc
Parents:
cd74143
Message:

Abort if any command in the script exits with an error (lintian: maintainer-script-ignores-errors)

Location:
debian/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • debian/scripts/postinst

    rcd74143 r5fe654e  
    11#!/bin/sh
     2set -e
     3
    24SVCHOME=/var/lib/i2p
    35I2P=/usr/share/i2p
  • debian/scripts/postrm

    rcd74143 r5fe654e  
    11#!/bin/sh
     2set -e
    23
    34# /etc/rc*.d/*i2p files
     
    67I2PUSER=i2psvc
    78# delete $I2PUSER if it exists (it will not if this is a purge after a remove)
    8 id $I2PUSER 2>/dev/null
    9 if [ $? -eq 0 ]; then
     9# the "| cat" sets the exit code to zero so the script doesn't abort
     10entry=`getent passwd | cut -d: -f1 | grep i2psvc | cat`
     11if [ -n "$entry" ]; then
    1012    exec userdel $I2PUSER
    1113fi
  • debian/scripts/prerm

    rcd74143 r5fe654e  
    11#!/bin/sh
     2set -e
     3
    24invoke-rc.d i2p stop
    35
Note: See TracChangeset for help on using the changeset viewer.