Subversion Repositories vgwhois

Rev

Rev 2 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 4
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
 
2
 
3
DIR=$( dirname "$0" )
-
 
4
 
-
 
5
ln -s "$DIR"/etc/gwhois/ /etc/gwhois
-
 
6
ln -s "$DIR"/usr/bin/gwhois /usr/bin/gwhois
-
 
7
ln -s "$DIR"/var/cache/gwhois/ /var/cache/gwhois
-
 
8
ln -s "$DIR"/usr/share/doc/gwhois/ /usr/share/doc/gwhois
-
 
9
ln -s "$DIR"/usr/share/man/man1/gwhois.1 /usr/share/man/man1/gwhois.1
-
 
10
ln -s "$DIR"/usr/share/gwhois/ /usr/share/gwhois
-
 
11
 
-
 
12
  db_get gwhois/inetd
3
  db_get gwhois/inetd
13
  if [ "$RET" = "true" ]; then
4
  if [ "$RET" = "true" ]; then
14
    if [ "$(which update-inetd)" != "" ]; then
5
    if [ "$(which update-inetd)" != "" ]; then
15
      update-inetd --add 'whois         stream  tcp     nowait  nobody  /usr/bin/gwhois gwhois'
6
      update-inetd --add 'whois         stream  tcp     nowait  nobody  /usr/bin/gwhois gwhois'
16
    else
7
    else