#!/bin/bash -e source /lib/start-lib.sh parse_json /srv/data/.paas URL="$1" [ -z "$URL" ] && exit 1 if curl -f -s -X PURGEALL "$URL" &> /dev/null; then echo PURGE requested else echo Failed to purge cache exit 1 fi