#!/bin/bash # analog of %post/%posttrans RPM scriptlet # For details see: # 1. https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#summary-of-ways-maintainer-scripts-are-called # 2. https://www.debian.org/doc/debian-policy/ap-flowcharts.html # Arguments in short: # "$1" == "configure" - RPM post/posttrans # "$1" == "abort-upgrade" - upgrade package error # "$1" == "abort-remove" - remove package error # "$1" == "triggered" - trigger, "$2" - package name, which called trigger # "pam-lve DEBIAN POSTINST STARTED" if [ "$1" == "triggered" ]; then # DEB package trigger if [ "$2" == "/etc/pam.d/sudo" ]; then # /etc/pam.d/sudo was changed /usr/share/pam_lve/scriptlets/rpm_triggerin_sudo.sh fi exit 0 fi /usr/share/pam_lve/scriptlets/rpm_post.sh "$1" # "pam-lve DEBIAN POSTINST FINISHED"