(#201) Use root to exec

User root is needed to execute this command.

If someone changes the default Exec user, apt-add-repository will fail.
This commit is contained in:
Tsuharesu Luciel 2013-12-30 16:01:56 -02:00
parent 5b54eda366
commit 2f6edabc4c

View file

@ -45,6 +45,7 @@ define apt::ppa(
environment => $proxy_env,
command => "/usr/bin/add-apt-repository ${options} ${name}",
unless => "/usr/bin/test -s ${sources_list_d}/${sources_list_d_filename}",
user => 'root',
logoutput => 'on_failure',
notify => Exec['apt_update'],
require => [