occ_maintenance.sh: remove LOCK directory if no previos process is running.
This commit is contained in:
@@ -209,6 +209,10 @@ if pgrep -f "$(basename $0)" | grep -q -v $$ ; then
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
if [[ -d "$LOCK_DIR" ]] ; then
|
||||||
|
rm -rf "$LOCK_DIR" 2> /dev/null
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user