Fixed shell endpoint bug and added notice when executing the script (#4748)

Co-authored-by: matteo <biscosi@ntop.org>
This commit is contained in:
Matteo Biscosi 2020-11-18 17:06:06 +01:00 committed by GitHub
parent e6bacc5b83
commit e543b207c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 93 additions and 23 deletions

View file

@ -9,8 +9,23 @@
if(key:match('^(.*).sh')) then
%}
<option value='{{ key }}'>{{ dir }}</option>
{% end %}
{% end %}
{%
end
%}
{%
end
%}
{%
for key, dir in pairs(ntop.readdir("scripts/shell")) do
if(key:match('^(.*).sh')) then
%}
<option value='{{ key }}'>{{ dir }}</option>
{%
end
%}
{%
end
%}
</select>
</div>
</div>