From: Sebastian Harl Date: Wed, 2 May 2007 06:08:54 +0000 (+0200) Subject: collectd.postinst: Set correct permissions for /var/lib/collectd/rrd/. X-Git-Tag: collectd-4.0.2-1~51 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0ad376c73c95eb324fc979cd540e085c7b28d0ec;p=pkg-collectd.git collectd.postinst: Set correct permissions for /var/lib/collectd/rrd/. mktemp(1) creates the directory with permissions 0700 but we want to have 0755 after the data has been migrated. --- diff --git a/debian/collectd.postinst b/debian/collectd.postinst index b9b5b14..122068a 100755 --- a/debian/collectd.postinst +++ b/debian/collectd.postinst @@ -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 ;;