XAS
view release on metacpan or search on metacpan
debian/postinst view on Meta::CPAN
#!/bin/sh
#
# File: postinst
# Date: 30-Jun-2014
# By : Kevin Esteb
#
# postinst script for libxas-perl
#
# Create the directory structure needed and set permissions
#
set -e
# 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)
install -m 755 -d /etc/xas
install -m 775 -d /var/lib/xas
install -m 775 -d /var/run/xas
install -m 775 -d /var/log/xas
install -m 775 -d /var/lock/xas
install -m 775 -d /var/spool/xas
install -m 775 -d /var/spool/xas/alerts
install -m 775 -d /var/spool/xas/logs
#
chown -R xas:xas /var/lib/xas
chown -R xas:xas /var/log/xas
chown -R xas:xas /var/lock/xas
chown -R xas:xas /var/run/xas
chown -R xas:xas /var/spool/xas
#
chmod g+s /var/lib/xas
chmod g+s /var/run/xas
chmod g+s /var/log/xas
chmod g+s /var/lock/xas
chmod g+s /var/spool/xas
chmod g+s /var/spool/xas/alerts
chmod g+s /var/spool/xas/logs
#
;;
abort-upgrade|abort-remove|abort-deconfigure)
echo $1
;;
*)
echo "postinst called with unknown argument \$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
( run in 0.956 second using v1.01-cache-2.11-cpan-5511b514fd6 )