removed two unneeded files after Richard backed out these changes.
[Samba.git] / packaging / HPUX / configure.bin
blob603633360542eba22cd034f71082e89ed7b5885a
1 # Samba.core configure script
3 RC=0
5 addUser()
7      if grep -q '^pcguest:' /etc/passwd
8      then
9          cat <<__EOF__
10 NOTE:    Username pcguest already exists in /etc/passwd file.
11 __EOF__
12         return
13     fi
15     /usr/sbin/useradd -g users -d /home/pcguest -c "Samba Guest" \
16                       -s /usr/bin/true -m pcguest
19     if [ $? -ne 0 ]
20     then
21         cat >&2 <<__EOF__
22 ERROR:   Failed to create username pcguest. 
23 __EOF__
24         RC=1
25     else
26         cat <<__EOF__
27 NOTE:    The configure script has added username pcguest in /etc/passwd file.
28          You must set the password for user pcguest in order to activate it.
29 __EOF__
30     fi
34 addUser
36 ln -s /sbin/init.d/samba /sbin/rc3.d/S911samba
37 ln -s /sbin/init.d/samba /sbin/rc2.d/K130samba
39 if [ ! -f /etc/rc.config.d/samba ]
40 then
41   cp /usr/local/samba/newconfig/samba.config /etc/rc.config.d/samba
44 exit 0