Merge pull request #97271 from Twey/rainloop-multiple-instances

rainloop: allow multiple instances to use the same package
This commit is contained in:
Sandro 2020-11-28 00:15:54 +01:00 committed by GitHub
commit fcf65032d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,8 @@
*/
function __get_custom_data_full_path()
{
return '${dataPath}'; // custom data folder path
$v = getenv('RAINLOOP_DATA_DIR', TRUE);
return $v === FALSE ? '${dataPath}' : $v;
}
'';
@ -33,6 +34,8 @@
cp -r rainloop/* $out
rm -rf $out/data
cp ${includeScript} $out/include.php
mkdir $out/data
chmod 700 $out/data
'';
meta = with stdenv.lib; {