From d92c10130df38e264c7c77367cf0d542d10794c0 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 11 Nov 2015 10:38:32 -0200 Subject: Use --conf when call ipsec start/stop, this make it work with regular package, without changing sysconfdir --- src/etc/inc/vpn.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/etc') diff --git a/src/etc/inc/vpn.inc b/src/etc/inc/vpn.inc index 1ca1f81..47d7108 100644 --- a/src/etc/inc/vpn.inc +++ b/src/etc/inc/vpn.inc @@ -1372,7 +1372,7 @@ EOD; /* manage process */ if ($restart === true) { - mwexec("/usr/local/sbin/ipsec restart", false); + mwexec("/usr/local/sbin/ipsec restart --conf {$g['varetc_path']}/ipsec/ipsec.conf", false); } else { if (isvalidpid("{$g['varrun_path']}/starter.charon.pid")) { /* Update configuration changes */ @@ -1380,7 +1380,7 @@ EOD; mwexec("/usr/local/sbin/ipsec rereadall", false); mwexec("/usr/local/sbin/ipsec reload", false); } else { - mwexec("/usr/local/sbin/ipsec start", false); + mwexec("/usr/local/sbin/ipsec start --conf {$g['varetc_path']}/ipsec/ipsec.conf", false); } } -- cgit v1.1