Project

General

Profile

« Previous | Next » 

Revision 10c7d642

Added by Ermal LUÇI over 12 years ago

Unbreak the openvpn reading of configs. A dir needs to be executable to be searchable and readble inside. Reported-by: http://forum.pfsense.org/index.php/topic,55934.0/topicseen.html

View differences:

etc/inc/openvpn.inc
655 655
	openvpn_add_custom($settings, $conf);
656 656

  
657 657
	if (!is_dir("{$g['varetc_path']}/openvpn"))
658
		safe_mkdir("{$g['varetc_path']}/openvpn", 0600);
658
		safe_mkdir("{$g['varetc_path']}/openvpn", 0750);
659 659
	if (!is_dir("{$g['varetc_path']}/openvpn-csc"))
660
		safe_mkdir("{$g['varetc_path']}/openvpn-csc", 0600);
660
		safe_mkdir("{$g['varetc_path']}/openvpn-csc", 0750);
661 661
	$fpath = "{$g['varetc_path']}/openvpn/{$mode_id}.conf";
662 662
	file_put_contents($fpath, $conf);
663 663
	unset($conf);

Also available in: Unified diff