ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.17k stars 648 forks source link

Error with "ntopng-utils-manage-updates" #8548

Closed plegrand1 closed 1 month ago

plegrand1 commented 1 month ago

Hello,

Environment:

What happened: Since last update, i've got an error message from crontab /etc/cron.d/ntopng * * * * * root /usr/bin/ntopng-utils-manage-updates -a handle-on-demand-requests

The error message is the following:

/usr/bin/ntopng-utils-manage-updates: ligne 211: erreur de syntaxe près du symbole inattendu « fi » 
/usr/bin/ntopng-utils-manage-updates: ligne 211: `  fi'

What could be the workaround because i receive an error mail every minute ?

Thanks for your help Pascal

cardigliano commented 1 month ago

Fixed in 8805eb617a41d83a5e65f31d3c7164872233a5d5 , building new packages, an update will be available in ~1h from now

plegrand1 commented 1 month ago

Ouch!!! I am impressed by the speed of the response and the solution provided. Thanks a lot I'm not a specialist of bash and i'm not sure about the problem. Is it because of the empty "else ?

cardigliano commented 1 month ago

Yes, bash does not like empty else blocks, this was fixed yesterday but it seems we forgot to push it sorry.

plegrand1 commented 1 month ago

Yes, bash does not like empty else blocks, this was fixed yesterday but it seems we forgot to push it sorry.

No problem and thanks again