Commit a2bbfb76 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Fix path for config test

parent e8eb83ee
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -211,10 +211,11 @@ class freeradius (
  # 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
  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,
    refreshonly => true,
    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