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
|
||||
|
||||
exit 1
|
||||
else
|
||||
if [[ -d "$LOCK_DIR" ]] ; then
|
||||
rm -rf "$LOCK_DIR" 2> /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user