#!/bin/bash
maxweb=8
echo "** tarte clear caches"
for i in `seq 1 $maxweb`;
do
  printf "   web$i: "
  curl -s --insecure --basic --user "autoproc:YnFZurWVwiM9ov3yKHgo" "https://web$i.tartecosmetics.com/admin/clearcache.php" >> /dev/null &2>&1
  printf "cleared!\n"
  if [ $i -lt $maxweb ]
  then 
    printf "   -- sleep 1 --\n"
    sleep 1
  fi
done
