Mercurial > noffle
comparison debian/postinst @ 418:cb18c7d41cc5 noffle
[svn] fixed update-inetd
| author | godisch |
|---|---|
| date | Fri, 20 Jun 2003 06:59:52 +0100 |
| parents | e5153104fbd9 |
| children | e5bd838e0c27 |
comparison
equal
deleted
inserted
replaced
| 417:e5153104fbd9 | 418:cb18c7d41cc5 |
|---|---|
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # $Id: postinst 560 2003-06-20 05:48:04Z godisch $ | 2 # $Id: postinst 561 2003-06-20 05:59:52Z godisch $ |
| 3 | 3 |
| 4 set -e | 4 set -e |
| 5 | 5 |
| 6 [ "$1" = configure ] || exit 0 | 6 [ "$1" = configure ] || exit 0 |
| 7 | 7 |
| 103 cp -f /usr/share/noffle/conf.debian $debian_config.new | 103 cp -f /usr/share/noffle/conf.debian $debian_config.new |
| 104 mv -fb $debian_config.new $debian_config | 104 mv -fb $debian_config.new $debian_config |
| 105 fi | 105 fi |
| 106 if ! grep -q "/usr/bin/noffle -r" /etc/inetd.conf; then | 106 if ! grep -q "/usr/bin/noffle -r" /etc/inetd.conf; then |
| 107 # just an example, the user needs to activate it himself | 107 # just an example, the user needs to activate it himself |
| 108 # update-inetd will silently fail if nntp is already occupied | |
| 108 update-inetd --group MAIL --add "nntp\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r" | 109 update-inetd --group MAIL --add "nntp\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r" |
| 109 update-inetd --disable "$port" | 110 if grep -q "^nntp.*/usr/bin/noffle -r"; then |
| 111 update-inetd --disable "$port" | |
| 112 fi | |
| 110 fi | 113 fi |
| 111 fi | 114 fi |
| 112 | 115 |
| 113 # sanity checks | 116 # sanity checks |
| 114 chown -R news:news /var/lock/noffle /var/spool/noffle | 117 chown -R news:news /var/lock/noffle /var/spool/noffle |
