anchor.diff:  #! /bin/bash
   # Pulls the log files from Akamai
  -set -x
   set -e
   
   LOCAL_LOGS_DIR=<%= @local_logs_dir %>/logs
  
positive.code: CONFIG_SHOULD_PURGE_FROM_AKAMAI="/etc/akamai_logs/should_purge_from_akamai"
  
  if [ ! -e $CONFIG_SHOULD_RUN ]; then
    echo "Should not run."
    exit 1
  fi
  
  
negative.code: 
  # Create lockfile, to avoid running the scanner
  if [ -e $LOCK_FILE ]; then
    echo "$( date -u --rfc-3339=s ) WARN: Lock file exists, aborting" >&2
    exit 1
  fi
  touch $LOCK_FILE
  