Use gpg.conf to configure GNUPGHOME for nocem.php.

This commit is contained in:
Retro_Guy 2023-07-24 10:57:22 -07:00
parent c355c0e59a
commit af642b5d29
1 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,8 @@
include "config.inc.php";
include ("$file_newsportal");
include $config_dir."/gpg.conf";
if(!isset($CONFIG['enable_nocem']) || $CONFIG['enable_nocem'] != true) {
exit;
}
@ -17,7 +18,7 @@
exit;
}
putenv("GNUPGHOME=".$config_dir.".gnupg");
putenv("GNUPGHOME=".$rslight_gpg['gnupghome']);
$webserver_group=$CONFIG['webserver_user'];
$logfile=$logdir.'/nocem.log';
@mkdir($spooldir."/nocem/processed",0755,'recursive');