Commit 2620c8e6 authored by Bruno Ribas's avatar Bruno Ribas

generator.sh: Reads GENERATESUMMARY variable to decide to generate summary

Variable GENERATESUMMARY is created to allow the administrador decide if
summary must be or not generated, default is 'false' and can be overwriten
at wwwsdi.conf
Signed-off-by: default avatarBruno Ribas <ribas@c3sl.ufpr.br>
parent b6809ff3
......@@ -28,6 +28,7 @@ test -f $PREFIX/wwwsdi.conf && source $PREFIX/wwwsdi.conf
: ${WWWDIR:=$PREFIX/www}
: ${DATADIR:=$PREFIX/coleta}
: ${TABLEATTRIBUTES:="border=\"1\""}
: ${GENERATESUMMARY:=false}
#Global variable, to avoid multiple generation of names
COLUMNNAMES=
......@@ -46,7 +47,7 @@ main()
done
#printf "Waiting Generations"
wait $(jobs -p)
bash generatesumary
test "$GENERATESUMMARY" == "true" && bash generatesumary
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment