]> git.ipfire.org Git - ipfire-2.x.git/commit - src/scripts/update-ids-ruleset
update-ids-ruleset: Always drop the lock file if it has been created during runtime.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 3 Mar 2022 04:49:43 +0000 (05:49 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 5 Mar 2022 14:30:06 +0000 (14:30 +0000)
commita956712e75643a4581da8246cef4135a31660746
treea10b2c61a8587854bf5bb68fa53da75f5865ed36
parent8353e28ad271c0c8d604dc147b4ce0ff399c1530
update-ids-ruleset: Always drop the lock file if it has been created during runtime.

In some situations or if an error happened, the lock file could be
keep on the system. In such a case the IDS page would be locked forever
until user interaction or reboot of the system.

Now the script checks if it has created such a lock and release it when
the script exists.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
src/scripts/update-ids-ruleset