Changeset 06a2b49 for fedkit/prep_gateway.pl
- Timestamp:
- Jan 21, 2013 11:05:56 PM (11 years ago)
- Branches:
- master
- Children:
- 328e93f
- Parents:
- 5dbcc93 (diff), dcac546 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/prep_gateway.pl
r5dbcc93 r06a2b49 40 40 gateway_lib::set_sshd_params( 41 41 { 'GatewayPorts' => 'yes', 'PermitTunnel' => 'yes' } ); 42 system("/etc/init.d/sshd restart"); 42 if ( -x "/etc/init.d/sshd") { 43 system("/etc/init.d/sshd restart"); 44 } 45 elsif (-x "/etc/init.d/ssh") { 46 # XXX should look for service 47 system("/etc/init.d/ssh restart"); 48 } 49 else { 50 print "Cannot figure out how to restart sshd\n"; 51 } 43 52 gateway_lib::import_key($ssh_pubkey,'/root/.ssh/authorized_keys') 44 53 if $ssh_pubkey; 54 # Make sure the tap interface is available 55 system('modprobe tun'); 45 56 # Install bridging software if not present 46 57 if ( -x '/usr/bin/yum' ) {
Note: See TracChangeset
for help on using the changeset viewer.