postinst is in aegis 4.24.3-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 27 28 29 30 31 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
# set permissions properly
# These files need to be 4755 root.root for aegis to work properly
AEGIS_EXEC="/usr/bin/aegis /usr/bin/aeimport /usr/bin/aelock"
# These files/dirs need to be 2755 sys.sys for aegis to work properly
AEGIS_SYS="/var/lib/aegis/"
for item in $AEGIS_EXEC; do
dpkg-statoverride --list "$item" || dpkg-statoverride --update --add root root 4755 $item
done
#NOTE: check each item to make sure it's not on an NFS partition
for item in $AEGIS_SYS; do
# First, check the perms
FUID=`ls -ld $item | awk '{print $3}'`
FGID=`ls -ld $item | awk '{print $4}'`
test -g /var/lib/aegis/ && test $FUID = sys && test $FGID = sys
if [ ! $? = 0 ]; then
dpkg-statoverride --list $item || dpkg-statoverride --update --add sys sys 2755 $item
fi
done
|