Skip to content
This repository has been archived by the owner on Feb 7, 2021. It is now read-only.

Commit

Permalink
Add placeholder boot.vcl.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Brækhus authored and Hugo Cruz committed Oct 12, 2017
1 parent c9717dd commit 677a7cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ set -e
case ${1:-} in
configure)
install -o varnish -g varnish -d /var/lib/varnish-agent
test -f /var/lib/varnish-agent/boot.vcl || \
cat > /var/lib/varnish-agent/boot.vcl <<EOF
# Placeholder file installed by varnish-agent
vcl 4.0;
backend {
.host = "127.0.0.1";
.port = "8080";
}
EOF
test -f /etc/varnish/agent_secret || \
(echo "varnish:$(head -c 8 /dev/urandom | base64)" > /etc/varnish/agent_secret && \
chmod 0600 /etc/varnish/agent_secret)
Expand Down

0 comments on commit 677a7cd

Please sign in to comment.