Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
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
You can’t perform that action at this time.