(#887) 对 oshino 使用临时目录而不是 datadir

This commit is contained in:
WindyMadman 2023-11-13 02:11:43 +08:00
parent 89c19c1b24
commit 09f4d45adc

View File

@ -37,7 +37,7 @@ sub startup {
my $descstr = $packagejson->{description};
my $secret = "";
my $secretfile_path = $ENV{LRR_DATA_DIRECTORY} ? $ENV{LRR_DATA_DIRECTORY} . "/oshino" : "oshino";
my $secretfile_path = get_temp . "/oshino";
if ( -e $secretfile_path ) {
$secret = Mojo::File->new($secretfile_path)->slurp;
} else {