#!/bin/bash # analog of %postun 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" == "remove" - RPM postun # "$1" == "abort-remove" - remove package error if [ "$1" = "configure" ]; then /sbin/ldconfig fi; exit 0