diff options
author | Ermal <eri@pfsense.org> | 2012-11-21 15:08:38 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-11-21 15:08:38 +0000 |
commit | ed490bdf99b257fb060a6e7eb7297fcecc449225 (patch) | |
tree | 2cca15a4135e725e6dc5658c5d2d5965d27ae5c4 /etc/inc/openvpn.inc | |
parent | e63f73d1165cb00c32ff92a7fdcc7a7039b8ba6f (diff) | |
download | pfsense-ed490bdf99b257fb060a6e7eb7297fcecc449225.zip pfsense-ed490bdf99b257fb060a6e7eb7297fcecc449225.tar.gz |
Create directory if it does not exists
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 6 |
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) { |