File: update-feeds

package info (click to toggle)
planetfilter 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268 kB
  • sloc: python: 477; sh: 64; makefile: 3
file content (20 lines) | stat: -rwxr-xr-x 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

. /etc/default/planetfilter

# Kill the process if it uses too much memory
ulimit -v "$MAX_VMEM"

CONFIGS="$(ls /etc/planetfilter.d/*.conf 2> /dev/null)"
if [ "z$CONFIGS" == "z" ] ; then
    echo "There aren't any feed configurations in /etc/planetfilter.d/"
    exit 0
fi

RET=0
for config in $CONFIGS ; do
    OUTFILE="/var/cache/planetfilter/$(basename "$config" .conf).xml"
    /usr/bin/planetfilter --force --output "$OUTFILE" "$config" || RET=1
done

exit $RET