- Timestamp:
- May 23, 2012 4:21:14 PM (13 years ago)
- Branches:
- compt_changes, master
- Children:
- 815cd26
- Parents:
- 2303ca1
- Location:
- fedkit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/federate.pl
r2303ca1 r5ae9d94 14 14 15 15 use gateway_lib; 16 17 # rc.fedaccounts is going to send a TERM to any processes running as an old 18 # user, so insulate this (and children) process from propagated signals. 19 $SIG{'TERM'} = 'IGNORE'; 16 20 17 21 chdir("/tmp"); … … 51 55 $perl = "perl" unless $perl; 52 56 53 if ($install_smb) { 54 # Install samba 55 system('/usr/bin/yum -y install samba-client'); 56 # These tools expect the fstab to include cifs 57 $smb_type = 'cifs'; 57 if (!-x '/sbin/mount.cifs' ) { 58 if ( -x '/usr/bin/yum' ) { 59 # Install samba 60 system('/usr/bin/yum -y install samba-client'); 61 system('/usr/bin/yum -y install cifs-utils'); 62 # These tools expect the fstab to include cifs 63 $smb_type = 'cifs'; 64 } 65 elsif (-x '/usr/bin/apt-get') { 66 # Install samba 67 system('/usr/bin/apt-get -y install samba-client'); 68 system('/usr/bin/apt-get -y install smbfs'); 69 # These tools expect the fstab to include cifs 70 $smb_type = 'cifs'; 71 } 58 72 } 59 73 -
fedkit/rc.fedaccounts
r2303ca1 r5ae9d94 66 66 67 67 foreach my $u (@delusers) { 68 # Can't delete a user who's logged in. Log 'em out. 69 system('/usr/bin/pkill', '-u', $u) if (-x '/usr/bin/pkill'); 68 70 print "Deleting user $u\n"; 69 71 os_userdel($u);
Note: See TracChangeset
for help on using the changeset viewer.