apt_conf: change mode to 644

Current mode (600) makes it impossible to use apt-cache to search for
package names and info, since it tries to read all configuration files
in /etc/apt/apt.conf.d before executing.

Change configuration file mode to 644 so that search tasks can be made
without root priviledge.
This commit is contained in:
Gabriel Filion 2010-11-29 13:37:53 -05:00
parent 6596641bb1
commit 52ebb41690

View file

@ -13,7 +13,7 @@ define apt::apt_conf(
file { "/etc/apt/apt.conf.d/${name}": file { "/etc/apt/apt.conf.d/${name}":
ensure => $ensure, ensure => $ensure,
notify => Exec["refresh_apt"], notify => Exec["refresh_apt"],
owner => root, group => 0, mode => 0600; owner => root, group => 0, mode => 0644;
} }
if $source { if $source {