Get python3 cmd for newer distros

This commit is contained in:
Ilia Rostovtsev
2020-06-10 20:51:54 +03:00
parent 965561793d
commit 398dec69dd

View File

@@ -18,7 +18,12 @@ $letsencrypt_chain_urls = [
sub get_letsencrypt_python_cmd
{
return &has_command("python2.7") || &has_command("python27") ||
return &has_command("python3") || &has_command("python30") ||
&has_command("python3.6") || &has_command("python36") ||
&has_command("python3.7") || &has_command("python37") ||
&has_command("python3.8") || &has_command("python38") ||
&has_command("python3.9") || &has_command("python39") ||
&has_command("python2.7") || &has_command("python27") ||
&has_command("python2.6") || &has_command("python26") ||
&has_command("python");
}