pkg://aegis_4.11-2.2_powerpc.deb:3029834/postinst
info downloads
#!/bin/sh -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"
# 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
chmod 4755 $item
chown root.root $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
chmod 2755 $item
chown sys.sys $item
fi
done