mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Add Ubuntu support to Shorewall-core installer.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b27e3d2fff
commit
faeea3bd8a
@ -58,7 +58,7 @@ my $rcfilename;
|
|||||||
|
|
||||||
unless ( defined $vendor ) {
|
unless ( defined $vendor ) {
|
||||||
if ( -f '/etc/os-release' ) {
|
if ( -f '/etc/os-release' ) {
|
||||||
my $id = `cat /etc/os-release | grep ^ID`;
|
my $id = `cat /etc/os-release | grep ^ID=`;
|
||||||
|
|
||||||
chomp $id;
|
chomp $id;
|
||||||
|
|
||||||
@ -68,6 +68,8 @@ unless ( defined $vendor ) {
|
|||||||
$vendor = 'redhat';
|
$vendor = 'redhat';
|
||||||
} elsif ( $id eq 'opensuse' ) {
|
} elsif ( $id eq 'opensuse' ) {
|
||||||
$vendor = 'suse';
|
$vendor = 'suse';
|
||||||
|
} elsif ( $id eq 'ubuntu' ) {
|
||||||
|
$vendor = 'debian';
|
||||||
} else {
|
} else {
|
||||||
$vendor = $id;
|
$vendor = $id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user