Permalink
Switch branches/tags
Nothing to show
Find file Copy path
2f5ca8c Nov 8, 2015
1 contributor

Users who have contributed to this file

23 lines (18 sloc) 476 Bytes
#!/usr/bin/env bash
# Include config
source /home/a5hley/.tasks/sites.sh
# Pushbullet token
TOKEN=''
# Store sites with errors
ERRORS=""
for i in ${SITES[@]}
do
cd "$ROOT/$i/public"
# Verify checksums
if ! /usr/local/bin/wp core verify-checksums; then
ERRORS="$ERRORS $i"
fi
done
if [ -n "$ERRORS" ]; then
curl -u $TOKEN: https://api.pushbullet.com/v2/pushes -d type=note -d title="Server" -d body="Checksums verification failed for the following sites:$ERRORS"
fi