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
|
#!/bin/sh
#
#
# If there is not a /var/log/setuid directory create it, and move
# any old logfiles into it.
set -e
#
if [ ! -d /var/log/setuid ]; then
mkdir -m 750 /var/log/setuid
chown root:adm /var/log/setuid || true
for file in /var/log/setuid.yesterday /var/log/setuid.today /var/log/setuid.changes \
/var/log/setuid.changes.*; do
[ ! -e $file ] || mv $file /var/log/setuid
done
fi
#
# If there is no /var/log/checksecurity directory create it, and move
#
if [ ! -d /var/log/checksecurity ]; then
mkdir -m 750 /var/log/checksecurity
chown root:adm /var/log/checksecurity || true
fi
#DEBHELPER#
exit 0
|