Changeset 5ae9d94


Ignore:
Timestamp:
May 23, 2012 4:21:14 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
815cd26
Parents:
2303ca1
Message:

Get remote mounting working on linux

Location:
fedkit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    r2303ca1 r5ae9d94  
    1414
    1515use 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';
    1620
    1721chdir("/tmp");
     
    5155$perl = "perl" unless $perl;
    5256
    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';
     57if (!-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    }
    5872}
    5973
  • fedkit/rc.fedaccounts

    r2303ca1 r5ae9d94  
    6666
    6767foreach 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');
    6870    print "Deleting user $u\n";
    6971    os_userdel($u);
Note: See TracChangeset for help on using the changeset viewer.