Sha256: ce242b4bf617e503a964401ca0234396e21bed1aaf9d02ad35dfe22503a9bb89
Contents?: true
Size: 1.53 KB
Versions: 1
Compression:
Stored size: 1.53 KB
Contents
#!/bin/bash set -e #DEBHELPER# OVERSIP_GEM_VERSION="~>1.0.1" # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> # <new-version> # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' # <failed-install-package> <version> `removing' # <conflicting-package> <version> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # # quoting from the policy: # Any necessary prompting should almost always be confined to the # post-installation script, and should be protected with a conditional # so that unnecessary prompting doesn't happen if a package's # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. case "$1" in configure) # Add a Debian system user/group called "oversip". adduser --quiet --system --group --disabled-password \ --shell /bin/false --gecos "OverSIP" \ --home /var/run/oversip oversip || true # Install the Ruby gem. # TODO: ACTIVAR #echo "installing 'oversip' Ruby Gem (version $OVERSIP_GEM_VERSION)..." #gem1.9.1 install oversip --no-rdoc --no-ri -v $OVERSIP_GEM_VERSION ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac exit 0 #DEBHELPER#
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oversip-1.0.1 | debian/postinst |