Skip to content
Snippets Groups Projects
Commit a2bbfb76 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Fix path for config test

parent e8eb83ee
Branches
Tags
No related merge requests found
...@@ -211,10 +211,11 @@ class freeradius ( ...@@ -211,10 +211,11 @@ class freeradius (
# This exec tests the radius config and fails if it's bad # This exec tests the radius config and fails if it's bad
# It isn't run every time puppet runs, but only when freeradius is to be restarted # It isn't run every time puppet runs, but only when freeradius is to be restarted
exec { 'radiusd-config-test': exec { 'radiusd-config-test':
command => '/usr/bin/sudo /usr/sbin/radiusd -XC | /bin/grep \'Configuration appears to be OK.\' | /usr/bin/wc -l', command => 'sudo radiusd -XC | grep \'Configuration appears to be OK.\' | wc -l',
returns => 0, returns => 0,
refreshonly => true, refreshonly => true,
logoutput => on_failure, logoutput => on_failure,
path => ['/bin/', '/sbin/', '/usr/bin/', '/usr/sbin/'],
} }
# Blank a couple of default files that will break our config. This is more effective than deleting them # Blank a couple of default files that will break our config. This is more effective than deleting them
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment