~ubuntu-branches/ubuntu/lucid/rsyslog/lucid-security

« back to all changes in this revision

Viewing changes to debian/rsyslog.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2008-12-17 00:29:43 UTC
  • mfrom: (3.2.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081217002943-zg0vjdae5n1folku
Tags: 3.18.6-2
* debian/rsyslog.postinst
  - Use $(($var)) syntax for arithmetic expressions, as dash from etch is
    not SUSv3 compliant in that regard which leads to failing dist upgrades
    when dash is used as /bin/sh. Closes: #508943

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
                        if [ "$rotate" = "yes" ] ; then
37
37
                                for s in $(seq 9 -1 1) ; do
38
38
                                        if [ -e $dir/$f.$s.gz ]; then
39
 
                                                mv $dir/$f.$s.gz $dir/$f.$((s+1)).gz
 
39
                                                mv $dir/$f.$s.gz $dir/$f.$(($s+1)).gz
40
40
                                        fi
41
41
                                done
42
42
                                mv $dir/$f.0 $dir/$f.1