provisioning tool for building opinionated architecture
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
324 B

10 months ago
  1. #!/bin/bash
  2. case $1 in
  3. minute) ;;
  4. daily) ;;
  5. *) echo "expected [minute|daily]" && exit 1 ;;
  6. esac
  7. SELECTOR=$1
  8. for i in /var/www/cagettepei/*; do
  9. if [[ -d $i ]]; then
  10. cd "$i/www" || echo "Folder not found: $i/www"
  11. echo "cron-$SELECTOR in: $i"
  12. neko index.n cron/$SELECTOR
  13. echo
  14. fi
  15. done