Debian: explicitly set permissions in postinst on /etc/i2p/wrapper.config (fixes #906)

This commit is contained in:
kytv
2013-03-31 12:47:53 +00:00
parent af79b74c8c
commit d5443a34ea

1
debian/i2p.postinst vendored
View File

@@ -60,6 +60,7 @@ case "$1" in
sed -e "s/^ *wrapper\.java\.maxmemory=.*/wrapper\.java\.maxmemory=$MEMORYLIMIT/" \ sed -e "s/^ *wrapper\.java\.maxmemory=.*/wrapper\.java\.maxmemory=$MEMORYLIMIT/" \
< /etc/i2p/wrapper.config > /etc/i2p/wrapper.config.tmp < /etc/i2p/wrapper.config > /etc/i2p/wrapper.config.tmp
mv -f /etc/i2p/wrapper.config.tmp /etc/i2p/wrapper.config mv -f /etc/i2p/wrapper.config.tmp /etc/i2p/wrapper.config
chmod 0644 -f /etc/i2p/wrapper.config
# Older versions of adduser created the home directory. # Older versions of adduser created the home directory.
# The version of adduser in Debian unstable does not. # The version of adduser in Debian unstable does not.