blob: 80d3b95a908e869ce9896d01adae652d41207557 (
plain) (
blame)
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
[ $# != 2 ] && exit 1
[ -z "${PKG_PREFIX}" ] && exit 1
[ -n "${BATCH}" ] && exit 0
PKG_NAME=$1
PKG_ACTION=$2
SPOOLDIR=/var/spool/MIMEDefang
case "$PKG_ACTION" in
POST-INSTALL)
if [ ! -d ${SPOOLDIR} ]; then
mkdir -p ${SPOOLDIR}
chown mailnull:mailnull ${SPOOLDIR}
chmod 700 ${SPOOLDIR}
fi
;;
PRE-INSTALL|POST-DEINSTALL|DEINSTALL)
;;
*)
echo "usage: $0 <PKG_NAME> {PRE-INSTALL|POST-INSTALL|DEINSTALL|POST-DEINSTALL}" >&2
exit 1
;;
esac
exit 0
|