Skip to content
Permalink
Browse files

Don't run cronjob if lockfile exists

  • Loading branch information
Marlamin committed Feb 11, 2020
1 parent 882da6f commit 4320bc5e93ecd8c1c10aa526fab24d171e37d706
Showing with 7 additions and 0 deletions.
  1. +7 −0 builds/scripts/update.sh
@@ -1,4 +1,11 @@
#!/bin/bash
if { set -C; 2>/dev/null > /home/wow/buildbackup/buildbackup.lock; }; then
trap "rm -f /home/wow/buildbackup/buildbackup.lock" EXIT
else
echo "Lock file exists… exiting" >&2
exit
fi

cd /home/wow/buildbackup/
/usr/bin/dotnet BuildBackup.dll
cd /var/www/wow.tools/builds/scripts/

0 comments on commit 4320bc5

Please sign in to comment.
You can’t perform that action at this time.