Changeset 2391 in ProjectBuilder
- Timestamp:
- Mar 19, 2019, 1:39:52 AM (6 years ago)
- Location:
- 0.15.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
0.15.1/pb-modules/lib/ProjectBuilder/Distribution.pm
r2362 r2391 280 280 # Now look at the os-release file to see if we have a std distribution description 281 281 # 282 $r = "/usr/lib/os-release"; 283 if (-r $r) { 284 my $tmp = pb_get_content("$r"); 285 ($release) = $tmp =~ m/.*\nVERSION_ID=[\"\']*([0-9a-z\._-]+)[\"\']*\n/m; 286 ($distro) = $tmp =~ m/.*\nID=[\"\']*([0-9A-z\._-]+)[\"\']*\n/m; 287 # Remove the leap suffix if present (OpenSUSE) 288 $distro =~ s/-leap//; 289 $found = 1 if ((defined $release) && (defined $distro)); 282 foreach my $r ("/usr/lib/os-release","/etc/os-release") { 283 if (-r $r) { 284 my $tmp = pb_get_content("$r"); 285 ($release) = $tmp =~ m/.*\nVERSION_ID=[\"\']*([0-9a-z\._-]+)[\"\']*\n/m; 286 ($distro) = $tmp =~ m/.*\nID=[\"\']*([0-9A-z\._-]+)[\"\']*\n/m; 287 # Remove the leap suffix if present (OpenSUSE) 288 $distro =~ s/-leap//; 289 if ((defined $release) && (defined $distro)) { 290 $found = 1; 291 last; 292 } 293 } 290 294 } 291 295 if ($found == 0) { -
0.15.1/pb/bin/pb
r2385 r2391 1041 1041 pb_log(0, "and that it allows remote root login (PermitRootLogin yes in /etc/ssh/sshd_config)\n"); 1042 1042 pb_log(0, "Also ensure that network is up, firewalling correctly configured\n"); 1043 pb_log(0, "and perl , Data::Dumper, tar, sudo, ntpdate and scp/ssh installed\n");1043 pb_log(0, "and perl-YAML, perl-Date-Manip, tar, sudo, ntpdate, make and scp/ssh installed\n"); 1044 1044 pb_log(0, "You should then be able to login with ssh -p VMPORT root\@localhost (if VM started with pb)\n"); 1045 1045 } elsif ($action =~ /^setuprm$/) { … … 5050 5050 # key is project on VM, but machine tuple for RM 5051 5051 if ($cmt =~ /^RM/i) { 5052 die "No port passed in parameter. You may miss a config file. Report to dev team\n" if (not defined $port->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"});5052 die "No port passed in parameter. You may miss a RM config file. Report to dev team\n" if (not defined $port->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"}); 5053 5053 $nport = $port->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"}; 5054 5054 } else { 5055 die "No port passed in parameter. You may miss a config file. Report to dev team\n" if (not defined $port->{'PBPROJ'});5055 die "No port passed in parameter. You may miss a VE config file or a vmport entry for $ENV{'PBPROJ'}. Report to dev team\n" if ((not defined $port->{'PBPROJ'}) and ($cmt =~ /^VE/i)); 5056 5056 $nport = $port->{$ENV{'PBPROJ'}}; 5057 5057 } 5058 pb_log(2,"pb_get_port with $nport\n") ;5058 pb_log(2,"pb_get_port with $nport\n") if (defined $nport); 5059 5059 if ($cmt =~ /^VM/i) { 5060 5060 # Maybe a port was given as parameter so overwrite
Note:
See TracChangeset
for help on using the changeset viewer.