pypi.sh 269 B

123456789
  1. #!/bin/bash
  2. if [ ! -d "$TUNASYNC_WORKING_DIR" ]; then
  3. echo "Directory not exists, fail"
  4. exit 1
  5. fi
  6. echo "Syncing to $TUNASYNC_WORKING_DIR"
  7. /usr/bin/timeout -s INT 3600 /home/tuna/.virtualenvs/bandersnatch/bin/bandersnatch -c /etc/bandersnatch.conf mirror || exit 1