#!/bin/bash -e
# Generate a unique timestamp ID for this version of the VCL
TIME=$(date +%s)
vadm="varnishadm -S /var/cache/varnish/varnishd/_.secret -T 127.0.0.1:6082"
# Load the file into memory
$vadm vcl.load varnish_$TIME /etc/varnish/vcl.conf
# Active this Varnish config
$vadm vcl.use varnish_$TIME