From: Ansgar Burchardt Date: Sat, 16 May 2015 13:25:58 +0000 (+0200) Subject: update-bugdoctxt: set SSL_CERT_FILE when calling lynx X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1de76eb5aa6362ae861d391b63bb1a889b8cc050;p=dak.git update-bugdoctxt: set SSL_CERT_FILE when calling lynx lynx doesn't seem able to use the service certificates in /etc/ssl/certs and the SSL_CERT_DIR environment variable doesn't seem to work either. While at it, also run lynx as the dak-unpriv user. --- diff --git a/scripts/debian/update-bugdoctxt b/scripts/debian/update-bugdoctxt index d5e6416a..b83e266a 100755 --- a/scripts/debian/update-bugdoctxt +++ b/scripts/debian/update-bugdoctxt @@ -16,7 +16,7 @@ convert () { src=$1; dst=$2 rm -f .new-$dst echo Generating $dst from https://www.debian.org/Bugs/$src ... - lynx -nolist -dump $urlbase$src | sed -e 's/^ *$//' | perl -00 -ne 'exit if /Back to the Debian Project homepage/; print unless ($.==1 || $.==2 || $.==3 || /^\s*Other BTS pages:$/m)' >.new-$dst + sudo -u dak-unpriv SSL_CERT_FILE=/etc/ssl/ca-debian/ca-certificates.crt lynx -nolist -dump $urlbase$src | sed -e 's/^ *$//' | perl -00 -ne 'exit if /Back to the Debian Project homepage/; print unless ($.==1 || $.==2 || $.==3 || /^\s*Other BTS pages:$/m)' >.new-$dst if cmp -s .new-$dst $dst ; then rm -f .new-$dst else mv -f .new-$dst $dst fi