mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
lynis
This commit is contained in:
parent
e86c68e3c5
commit
cbfa62a904
1 changed files with 5 additions and 0 deletions
5
lynis
5
lynis
|
|
@ -320,6 +320,11 @@ ${YELLOW}Note: ${WHITE}Cancelling the program can leave temporary files behind${
|
|||
"
|
||||
wait_for_keypress
|
||||
|
||||
if [ ${CRONJOB} -eq 1 ]; then
|
||||
echo "Quitting, to prevent multiple cron jobs running at the same time"
|
||||
exit 1 # Manually exit, no cleanups to prevent deleting an active PID file
|
||||
fi
|
||||
|
||||
# Deleting any stale PID files that might exist. Note: Display function does not work yet at this point
|
||||
if [ -f "${MYHOMEDIR}/lynis.pid" ]; then rm -f "${MYHOMEDIR}/lynis.pid"; fi
|
||||
if [ -f "./lynis.pid" ]; then rm -f "./lynis.pid"; fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue