~ubuntu-branches/ubuntu/lucid/clamav/lucid-backports

« back to all changes in this revision

Viewing changes to debian/clamav-freshclam.postinst.in

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2012-10-08 18:11:31 UTC
  • mfrom: (0.1.121 quantal)
  • Revision ID: package-import@ubuntu.com-20121008181131-fd8nm062cq1etd0x
Tags: 0.97.6+dfsg-1ubuntu0.11.04.1~10.04.1
No change backport update for latest clamav release for lucid
(LP: #1064096)

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
    url="`echo "$RET" | sed -e 's,^http://,,g' | sed -e 's,/$,,g'`"
107
107
    phost="`echo "$url" | cut -d':' -f 1`"
108
108
    pport="`echo "$url" | cut -d':' -f 2`"
 
109
    if [ "$pport" = "$phost" ]; then
 
110
        pport=""
 
111
    fi
109
112
    fullurl="$RET"
110
113
    db_metaget clamav-freshclam/proxy_user value || true
111
114
    if [ "$RET" != "" ]; then
264
267
    grep -q "$m" "$DEBCONFILE" || echo "DatabaseMirror $m" >> $DEBCONFILE
265
268
  done
266
269
 
267
 
  if [ -n "$phost" ] && [ -n "$pport" ]; then
 
270
  if [ -n "$phost" ]; then
268
271
    echo "# Proxy: $fullurl" >> $DEBCONFILE
269
272
    echo "HTTPProxyServer $phost" >> $DEBCONFILE
270
 
    echo "HTTPProxyPort $pport" >> $DEBCONFILE
 
273
    if [ -n "$pport" ]; then
 
274
      echo "HTTPProxyPort $pport" >> $DEBCONFILE
 
275
    fi
271
276
  fi
272
277
  if [ -n "$puser" ] && [ -n "$ppass" ]; then
273
278
    echo "# Proxy authentication: $fulluser" >> $DEBCONFILE