#!/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" - observed file which fired the trigger # RPM post Arguments: # $2 - CL Solo marker - /etc/cloudlinux-edition-solo # "cloudlinux-linksafe DEBIAN POSTINST STARTED" solo_marker='/etc/cloudlinux-edition-solo' container_marker='/etc/cloudlinux-container' /usr/share/cloudlinux-linksafe/scriptlets/rpm_posttrans.sh $1 "$solo_marker" "$container_marker" # "cloudlinux-linksafe DEBIAN POSTINST FINISHED" exit 0