mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Added python script to shell script endpoint
This commit is contained in:
parent
f83a474f17
commit
c305472401
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
{%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue