Allow a different state directory for hydra-server

This is necessary if hydra-server runs under a different uid than the
other Hydra processes.
This commit is contained in:
Eelco Dolstra 2015-02-24 11:40:24 +01:00
parent 00e03b9db5
commit 7c048cbbcf

View file

@ -55,7 +55,7 @@ __PACKAGE__->config(
},
'Plugin::Session' => {
expires => 3600 * 24 * 7,
storage => Hydra::Model::DB::getHydraPath . "/session_data",
storage => ($ENV{'HYDRA_SERVER_DATA'} // Hydra::Model::DB::getHydraPath) . "/session_data",
unlink_on_exit => 0
},
'Plugin::AccessLog' => {