comparison debian/postinst @ 451:465d6f1971e0 noffle

[svn] added sanity check for noffle.conf permissions
author godisch
date Wed, 25 Jun 2003 17:35:04 +0100
parents 0a5e33528ec1
children 57fc18375ad6
comparison
equal deleted inserted replaced
450:a85a0af33718 451:465d6f1971e0
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: postinst 588 2003-06-25 16:03:29Z godisch $ 2 # $Id: postinst 594 2003-06-25 16:35:04Z godisch $
3 3
4 set -e 4 set -e
5 5
6 [ "$1" = configure ] || exit 0 6 [ "$1" = configure ] || exit 0
7 7
70 update-inetd --group MAIL --add "nntp\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r" 70 update-inetd --group MAIL --add "nntp\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r"
71 fi 71 fi
72 fi 72 fi
73 73
74 # sanity checks 74 # sanity checks
75 chgrp news /etc/news/noffle.conf
76 chmod g+r,o-r /etc/news/noffle.conf
75 chown -R news:news /var/lock/noffle /var/spool/noffle 77 chown -R news:news /var/lock/noffle /var/spool/noffle
76 chmod -R go-w /var/lock/noffle /var/spool/noffle 78 chmod -R go-w /var/lock/noffle /var/spool/noffle
77 find /var/lock/noffle /var/spool/noffle -type d -print0 | xargs -0 chmod g+s 79 find /var/lock/noffle /var/spool/noffle -type d -print0 | xargs -0 chmod g+s
78 80
79 # init.d startup 81 # init.d startup