vncserver: extract IsDebian()

This commit is contained in:
Dmitry Maksyoma 2021-09-18 22:30:34 +12:00
parent 5f7d3ad43a
commit 17fa6911c1

View File

@ -547,8 +547,12 @@ sub CheckRequiredDependenciesArePresent
&CheckUserHasSslCertGroupOnDebian();
}
sub IsDebian {
return -f "/etc/debian_version";
}
sub CheckUserHasSslCertGroupOnDebian {
if (! -f "/etc/debian_version") {
if (!&IsDebian()) {
return;
}