mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/opensmtpd: Fixup some spooldir ownership and perms
This should ease the transition for upgrades of earlier versions. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
ac6fdf8061
commit
68a5cd7330
1 changed files with 13 additions and 0 deletions
|
@ -140,6 +140,19 @@ sed -i "s,/etc/mail/,/etc/opensmtpd/,g" $PKG/etc/opensmtpd/smtpd.conf.new
|
|||
# Create (but don't clobber) the aliases file
|
||||
cat $CWD/aliases > $PKG/etc/opensmtpd/aliases.new
|
||||
|
||||
# Create some other required directories with proper ownership and permissions
|
||||
mkdir -p $PKG/var/spool/smtpd/corrupt $PKG/var/spool/smtpd/incoming \
|
||||
$PKG/var/spool/smtpd/offline $PKG/var/spool/smtpd/purge \
|
||||
$PKG/var/spool/smtpd/queue $PKG/var/spool/smtpd/temporary
|
||||
chown root:smtpq $PKG/var/spool/smtpd/offline
|
||||
chown smtpq:root $PKG/var/spool/smtpd/corrupt $PKG/var/spool/smtpd/incoming \
|
||||
$PKG/var/spool/smtpd/purge $PKG/var/spool/smtpd/queue \
|
||||
$PKG/var/spool/smtpd/temporary
|
||||
chmod 0700 $PKG/var/spool/smtpd/corrupt $PKG/var/spool/smtpd/incoming \
|
||||
$PKG/var/spool/smtpd/queue $PKG/var/spool/smtpd/temporary
|
||||
chmod 0770 $PKG/var/spool/smtpd/offline
|
||||
chmod 0750 $PKG/var/spool/smtpd/purge
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
|
|
Loading…
Reference in a new issue