emailrelay/debian/preinst
Graeme Walker c957ef5cf5 v2.0
2018-06-15 12:00:00 +00:00

21 lines
258 B
Bash
Executable File

#!/bin/sh
#
# preinst
#
spool="/var/spool/emailrelay"
create_spool()
{
test -d "$spool" || mkdir "$spool"
if ls -nd "$spool" | cut -d' ' --fields=3,4 | grep -q '^0 0$'
then
chgrp daemon "$spool" && chmod 775 "$spool"
fi
}
create_spool
#DEBHELPER#