]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
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)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 7 Mar 2022 18:49:59 +0000 (18:49 +0000)
commit85b1d83b2a6fe2beb8169f3e810e915c4ad54036
treec74453aa56ee1c7bcac013e068678dde7e4c0d9c
parentda3611b2767298e3f300b12b6ae03958a193c871
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/update-ids-ruleset