46-configure-htpdate 251 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh

set -e

echo "Configuring htpdate HTTP User-Agent"

CONFFILE='/etc/default/htpdate.user-agent'

install -o root -g root -m 0644 /dev/null "$CONFFILE"

11
echo "HTTP_USER_AGENT=\"$(/usr/local/lib/getTorBrowserUserAgent)\"" \
12
     > "$CONFFILE"