From 398dec69dd860ea710cb056cd1c24bca7278b54f Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Wed, 10 Jun 2020 20:51:54 +0300 Subject: [PATCH] Get python3 cmd for newer distros --- webmin/letsencrypt-lib.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webmin/letsencrypt-lib.pl b/webmin/letsencrypt-lib.pl index b94c9fbb3..21a916efa 100755 --- a/webmin/letsencrypt-lib.pl +++ b/webmin/letsencrypt-lib.pl @@ -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"); }