(#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:
parent
5b54eda366
commit
2f6edabc4c
1 changed files with 1 additions and 0 deletions
|
@ -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 => [
|
||||
|
|
Loading…
Reference in a new issue