mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Reworked shell script execution with runtime alert values
This commit is contained in:
parent
ccd029be39
commit
7c1a023dcd
7 changed files with 94 additions and 54 deletions
|
|
@ -5,8 +5,8 @@
|
|||
<div class="col-sm-5">
|
||||
<select name="shell_script" class="form-control" required>
|
||||
{%
|
||||
for key, dir in pairs(ntop.readdir("/usr/share/ntopng")) do
|
||||
if(key:match('^(.*).sh')) then
|
||||
for key, dir in pairs(ntop.readdir("/usr/share/ntopng/scripts/shell/")) do
|
||||
if(key:match('^(.*).sh$')) then
|
||||
%}
|
||||
<option value='{{ key }}'>{{ dir }}</option>
|
||||
{%
|
||||
|
|
@ -16,8 +16,8 @@
|
|||
end
|
||||
%}
|
||||
{%
|
||||
for key, dir in pairs(ntop.readdir("scripts/shell")) do
|
||||
if(key:match('^(.*).sh')) then
|
||||
for key, dir in pairs(ntop.readdir(dirs.installdir.."/scripts/shell")) do
|
||||
if(key:match('^(.*).sh$')) then
|
||||
%}
|
||||
<option value='{{ key }}'>{{ dir }}</option>
|
||||
{%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue