summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/openvpn.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 3c8d2ae..4001c94 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -1075,8 +1075,10 @@ function openvpn_get_client_status($client, $socket) {
function openvpn_refresh_crls() {
global $g, $config;
- if (!file_exists($g['varetc_path']."/openvpn"))
- return;
+ if (!is_dir("{$g['varetc_path']}/openvpn"))
+ safe_mkdir("{$g['varetc_path']}/openvpn", 0750);
+ if (!is_dir("{$g['varetc_path']}/openvpn-csc"))
+ safe_mkdir("{$g['varetc_path']}/openvpn-csc", 0750);
if (is_array($config['openvpn']['openvpn-server'])) {
foreach ($config['openvpn']['openvpn-server'] as $settings) {
OpenPOWER on IntegriCloud