Mercurial > noffle
comparison debian/postinst @ 417:e5153104fbd9 noffle
[svn] typo
| author | godisch |
|---|---|
| date | Fri, 20 Jun 2003 06:48:04 +0100 |
| parents | fbdcd908aa7c |
| children | cb18c7d41cc5 |
comparison
equal
deleted
inserted
replaced
| 416:fbdcd908aa7c | 417:e5153104fbd9 |
|---|---|
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # $Id: postinst 559 2003-06-20 05:46:49Z godisch $ | 2 # $Id: postinst 560 2003-06-20 05:48:04Z godisch $ |
| 3 | 3 |
| 4 set -e | 4 set -e |
| 5 | 5 |
| 6 [ "$1" = configure ] || exit 0 | 6 [ "$1" = configure ] || exit 0 |
| 7 | 7 |
| 102 umask 022 | 102 umask 022 |
| 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 need to activate it himself | 107 # just an example, the user needs to activate it himself |
| 108 update-inetd --group MAIL --add "nntp\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r" | 108 update-inetd --group MAIL --add "nntp\tstream\ttcp\tnowait\tnews\t/usr/sbin/tcpd /usr/bin/noffle -r" |
| 109 update-inetd --disable "$port" | 109 update-inetd --disable "$port" |
| 110 fi | 110 fi |
| 111 fi | 111 fi |
| 112 | 112 |
