schema update

This commit is contained in:
hummypkg 2017-01-15 15:32:16 +00:00
parent 918678b66f
commit da02104cf8
2 changed files with 15 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Package: sweeper Package: sweeper
Priority: optional Priority: optional
Section: misc Section: misc
Version: 2.1.5-2 Version: 2.1.5-3
Architecture: mipsel Architecture: mipsel
Maintainer: af123@hummypkg.org.uk Maintainer: af123@hummypkg.org.uk
Depends: webif(>=1.3.5-3) Depends: webif(>=1.3.5-3)

View File

@ -31,9 +31,22 @@ case $schema in
sed -e 's/^folder /& series "" /' -i "$f" sed -e 's/^folder /& series "" /' -i "$f"
done done
;; ;;
1|2)
# Upgrade fflag arguments
echo "Upgrading sweeper rules for folder flags"
(echo /mod/etc/sweeper.conf; find /media -follow -name .sweeper) \
| while read f; do
[ -f "$f" ] || continue
echo "Processing $f..."
sed -e '
s/fflag autoshrinkr/fflag autoshrinkR/
s/fflag autodecryptr/fflag autodecryptR/
' -i "$f"
done
;;
esac esac
echo 2 > /mod/.swschema echo 3 > /mod/.swschema
exit 0 exit 0