]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
ids.cgi: Add some more sanity checks when adding a new provider.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 14 Apr 2021 18:32:14 +0000 (20:32 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 2 Dec 2021 06:54:48 +0000 (07:54 +0100)
commitcc302cabcc146fcbd8756a726a1412463788b3bb
tree5bc0be58a007473534f27e80bedf775b8797ebfb
parenta59f2d06a1eb6056373023c1605ac1ecc02f92ed
ids.cgi: Add some more sanity checks when adding a new provider.

* Check if the system is online.
* Check if enough free disk space is available.
* Abort whith an error message if the ruleset could not be
  downloaded.

In error case the provider now will be removed again from the file which
keeps the configured providers. Sadly it needs to be added first because
otherwise the downloader could not read the required values from it.....

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl