X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=4ce9da1de42176dafa4fa677e703c0ceccd97034;hb=05feb08987abb48996f97a4938a3ef507584ae23;hp=8195fc55edd12329078f7f41fdd60f409d9163bb;hpb=4e5a0655072be725acf00394186b93c96bba17ee;p=freeside.git diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 8195fc55e..4ce9da1de 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -129,7 +129,9 @@ sub set { warn "[FS::Conf] SET $file\n" if $DEBUG; # warn "$dir" if is_tainted($dir); # warn "$dir" if is_tainted($file); + chmod 0644, "$dir/$file"; my $fh = new IO::File ">$dir/$file" or return; + chmod 0644, "$dir/$file"; print $fh "$value\n"; } } @@ -623,6 +625,13 @@ httemplate/docs/config.html }, { + 'key' => 'radiusprepend', + 'section' => 'radius', + 'description' => 'The contents will be prepended to the top of the RADIUS users file (text exports only).', + 'type' => 'textarea', + }, + + { 'key' => 'textradiusprepend', 'section' => 'depreciated', 'description' => 'DEPRECIATED, use RADIUS check attributes instead. This option will be removed soon. The contents will be prepended to the first line of a user\'s RADIUS entry in text exports.',