From b880b19351fdf5ea699dd5bd5d57ba9a7a1759f3 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 28 Apr 2008 03:48:10 +0000 Subject: Just handle server instances for now. --- etc/inc/openvpn.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index ff44195..237fffe 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -48,7 +48,9 @@ require_once('util.inc'); // Shutdown running process if needed function openvpn_delete($id) { global $g, $config; - $ps = $g['varetc_path'] . "/openvpn_{$mode}{$id}.conf"; + $settings = $config['installedpackages']["openvpn$mode"]['config'][$id]; + $mode = $settings['mode']; + $ps = $g['varetc_path'] . "/openvpn_server{$id}.conf"; $ps_id = `ps awux | grep $ps | awk '{ print \$2 }'`; killbypid($ps_id); } -- cgit v1.1