Code

collectd.postinst: Set correct permissions for /var/lib/collectd/rrd/.
authorSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 06:08:54 +0000 (08:08 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 18:00:54 +0000 (18:00 +0000)
mktemp(1) creates the directory with permissions 0700 but we want to have 0755
after the data has been migrated.

debian/collectd.postinst

index b9b5b142b95e2619348ff17936e9035b476ff7f8..122068a943a960762b08c5f63c6590db63d0291a 100755 (executable)
@@ -35,6 +35,7 @@ case "$1" in
             rm -rf /var/lib/collectd/
             mkdir /var/lib/collectd/
             mv $tmpdir /var/lib/collectd/rrd
+            chmod 0755 /var/lib/collectd/rrd
         fi
     ;;