mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Netplan dir may exist but be empty https://www.virtualmin.com/node/70054
This commit is contained in:
@@ -21,7 +21,8 @@ elsif ($gconfig{'os_type'} eq 'slackware-linux' &&
|
||||
# Special case for Slackware 9.1+
|
||||
do "$gconfig{'os_type'}-9.1-ALL-lib.pl";
|
||||
}
|
||||
elsif ($gconfig{'os_type'} eq 'debian-linux' && -d "/etc/netplan") {
|
||||
elsif ($gconfig{'os_type'} eq 'debian-linux' && -d "/etc/netplan" &&
|
||||
glob("/etc/netplan/*")) {
|
||||
# Special case for newer Ubuntu versions
|
||||
do "netplan-lib.pl";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user