From c8423fbfca5b17ab9224e4345a0e1dc5e18220db Mon Sep 17 00:00:00 2001 From: Matthew Grooms Date: Wed, 10 Sep 2008 02:53:59 +0000 Subject: Make sure the /var/db/racoon path exists before starting racoon. This is needed to ensure racoonctl can communicate properly with racoon. --- etc/inc/vpn.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/inc') diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index b477b89..ce4e477 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -781,6 +781,10 @@ EOD; fclose($fd); } + /* needed for racoonctl admin socket */ + if (!file_exists("/var/db/racoon")) + mkdir("/var/db/racoon/"); + /* mange racoon process */ if (is_process_running("racoon")) { /* We are already online, reload */ -- cgit v1.1