| 
            Last change
 on this file since 960 was             1, checked in by Paul Smedley, 19 years ago           | 
        
        
          | 
             
Initial code import 
 
           | 
        
        
          | 
            File size:
            1.0 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | while read src dest 
 | 
|---|
| 2 | do
 | 
|---|
| 3 |         sed -e '/^swat.*swat$/d' $dest >/tmp/$$swat || exit 2
 | 
|---|
| 4 |         cat $src >>/tmp/$$swat || exit 2
 | 
|---|
| 5 | 
 | 
|---|
| 6 |         # Use cp;rm instead of mv because $dest might be a symlink
 | 
|---|
| 7 |         cp -f /tmp/$$swat $dest || exit 2
 | 
|---|
| 8 |         rm -f /tmp/$$swat
 | 
|---|
| 9 | done
 | 
|---|
| 10 | 
 | 
|---|
| 11 | if [ "$1" = ENDOFCLASS ]
 | 
|---|
| 12 | then
 | 
|---|
| 13 |         
 | 
|---|
| 14 |         # If local install, restart inetd
 | 
|---|
| 15 |         if [ -z "${PKG_INSTALL_ROOT}" ]
 | 
|---|
| 16 |         then
 | 
|---|
| 17 |                 TARGET=`hostname`
 | 
|---|
| 18 |                 kill -HUP `ps -e -o pid,comm | grep inetd | awk '{print $1}'`
 | 
|---|
| 19 |         else
 | 
|---|
| 20 |                 TARGET="<servername>"
 | 
|---|
| 21 |         fi
 | 
|---|
| 22 | 
 | 
|---|
| 23 |         cat <<EOF
 | 
|---|
| 24 | The Samba Web Administration Tool (SWAT) has been installed on your system.
 | 
|---|
| 25 | You can connect to it from a web browser on TCP port 901 at 
 | 
|---|
| 26 | http://${TARGET}:901/.
 | 
|---|
| 27 | 
 | 
|---|
| 28 | If you use NIS/NIS+, check the ${PKG_INSTALL_ROOT}/etc/nsswitch.conf file
 | 
|---|
| 29 | to verify that the local services file is being used as a backend for the
 | 
|---|
| 30 | services database, or you won't be able to connect to the Samba Admin Tool.
 | 
|---|
| 31 | 
 | 
|---|
| 32 | EOF
 | 
|---|
| 33 | 
 | 
|---|
| 34 |         if [ ! -z "$PKG_INSTALL_ROOT" ]
 | 
|---|
| 35 |         then
 | 
|---|
| 36 |                 cat <<EOF
 | 
|---|
| 37 | The SWAT settings will not take effect till you send a hangup (HUP) signal 
 | 
|---|
| 38 | to inetd on the target system.
 | 
|---|
| 39 | 
 | 
|---|
| 40 | EOF
 | 
|---|
| 41 |         fi
 | 
|---|
| 42 | 
 | 
|---|
| 43 | fi
 | 
|---|
| 44 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.