Fix plugin path on x86_64

tags/0.1.2_el5 0.1.2_el5
Daniel Berteaud 11 years ago
parent 890a6c2e09
commit 5534d9a3cb
  1. 4
      root/etc/e-smith/templates/etc/openvpn/routed/openvpn.conf/40auth

@ -1,8 +1,8 @@
{
my $userAuth = ${'openvpn-routed'}{Authentication} || 'CrtWithPass';
if ($userAuth eq 'CrtWithPass'){
my $plugin_dir = (-d "/usr/share/openvpn/plugin/lib") ?
'/usr/share/openvpn/plugin/lib':'/usr/lib/openvpn/plugin/lib';
my $plugin_dir = (-d "/usr/lib64/openvpn/plugin/lib") ?
'/usr/lib64/openvpn/plugin/lib':'/usr/lib/openvpn/plugin/lib';
$OUT .= "plugin ".$plugin_dir."/openvpn-auth-pam.so login\n";
}
$OUT .= '';

Loading…
Cancel
Save