Added python script to shell script endpoint

This commit is contained in:
MatteoBiscosi 2021-09-03 17:55:43 +02:00
parent f83a474f17
commit c305472401

View file

@ -6,7 +6,7 @@
<select name="shell_script" class="form-select" required>
{%
for key, dir in pairs(ntop.readdir("/usr/share/ntopng/scripts/shell/")) do
if(key:match('^(.*).sh$')) then
if(key:match('^(.*).[sh|py]$'))then
%}
<option value='{{ key }}'>{{ dir }}</option>
{%
@ -17,7 +17,7 @@
%}
{%
for key, dir in pairs(ntop.readdir(dirs.installdir.."/scripts/shell")) do
if(key:match('^(.*).sh$')) then
if(key:match('^(.*).[sh|py]$')) then
%}
<option value='{{ key }}'>{{ dir }}</option>
{%