postinst is in python3-rtslib-fb 2.1.57+debian-3.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
update-alternatives --install /usr/bin/targetctl targetctl /usr/bin/targetctl-python3 200
if [ ! -d /etc/rtslib-fb-target ] ; then
mkdir -p /etc/rtslib-fb-target
fi
# If file doesn't exist or is of size zero, write it...
if [ ! -s /etc/rtslib-fb-target/saveconfig.json ] ; then
echo "{
\"fabric_modules\": [],
\"storage_objects\": [],
\"targets\": []
}" >/etc/rtslib-fb-target/saveconfig.json
fi
fi
# Automatically added by dhpython:
if which py3compile >/dev/null 2>&1; then
py3compile -p python3-rtslib-fb
fi
# End automatically added section
|