occ_maintenance.sh: remove LOCK directory if no previos process is running.

This commit is contained in:
2026-04-13 00:07:30 +02:00
parent 6995075721
commit 94d80c6dfb

View File

@@ -209,6 +209,10 @@ if pgrep -f "$(basename $0)" | grep -q -v $$ ; then
echo
exit 1
else
if [[ -d "$LOCK_DIR" ]] ; then
rm -rf "$LOCK_DIR" 2> /dev/null
fi
fi