2022-09-25 15:07:01 +02:00
|
|
|
#!/bin/bash -e
|
2022-09-18 23:03:45 +02:00
|
|
|
|
|
|
|
# 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
|