anchor.diff:     echo "Lock file exists"
      exit 0
   fi
  -trap 'rm $LOCK_FILE' EXIT 1 2 3 6
  +trap 'rm $LOCK_FILE' EXIT 1 2 3
   
   export PATH=$PATH:/usr/local/bin
   export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
  
positive.code: mkdir -p ${cur_tile_dir}
  mv <%= node[:valhalla][:tile_dir] %>/* ${cur_tile_dir}/
  cp -rp ${cur_tile_dir}/$(basename ${admin_file}) <%= node[:valhalla][:tile_dir] %>
  
  # do we want to send this update to s3
  if [ "<%= node[:valhalla][:with_updates] %>" == true ]; then
  
negative.code: # if we dont have admins we must create them
  extracts=$(find <%= node[:valhalla][:extracts_dir] %> -type f -name "*.pbf")
  admin_file=$(jq -r '.mjolnir.admin.admin_dir' <%= node[:valhalla][:config] %>)/$(jq -r '.mjolnir.admin.db_name' <%= node[:valhalla][:config] %>)
  transit_file=$(jq -r '.mjolnir.transit.transit_dir' <%= node[:valhalla][:config] %>)/$(jq -r '.mjolnir.transit.db_name' <%= node[:valhalla][:config] %>)
  if [ ! -e $admin_file ]; then
    pbfadminbuilder -c <%= node[:valhalla][:config] %> $(find <%= node[:valhalla][:extracts_dir] %> -type f -name "*.pbf")
  fi
  