Changeset 09f292b


Ignore:
Timestamp:
Jul 14, 2012 7:29:46 PM (8 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, master
Children:
76c43e4
Parents:
7e55a14
Message:

Deal with installing Linux software using apt-get on the portal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/prep_gateway.pl

    r7e55a14 r09f292b  
    4444        if $ssh_pubkey;
    4545    # Install bridging software if not present
    46     system('/usr/bin/yum -y install bridge-utils');
     46    if ( -x '/usr/bin/yum' ) {
     47        system('/usr/bin/yum -y install bridge-utils');
     48    }
     49    elsif (-x '/usr/bin/apt-get') {
     50        system('/usr/bin/apt-get -y install bridge-utils');
     51    }
     52    else {
     53        print "Cannot install bridge utils, hope they're here.\n"
     54    }
    4755}
    4856elsif ($uname =~ /FreeBSD/ ){
Note: See TracChangeset for help on using the changeset viewer.