@@ -24,7 +24,8 @@
2424 */
2525 function __get_custom_data_full_path()
2626 {
27− return '${dataPath}'; // custom data folder path
27+ $v = getenv('RAINLOOP_DATA_DIR', TRUE);
28+ return $v === FALSE ? '${dataPath}' : $v;
2829 }
2930 '';
3031
@@ -33,6 +34,8 @@
3334 cp -r rainloop/* $out
3435 rm -rf $out/data
3536 cp ${includeScript} $out/include.php
37+ mkdir $out/data
38+ chmod 700 $out/data
3639 '';
3740
3841 meta = with stdenv.lib; {
@@ -44,13 +47,13 @@
4447 maintainers = with maintainers; [ das_j ];
4548 };
4649 });
47− in {
48− rainloop-community = common {
49− edition = "community";
50− sha256 = "0a8qafm4khwj8cnaiaxvjb9073w6fr63vk1b89nks4hmfv10jn6y";
51− };
52− rainloop-standard = common {
53− edition = "";
54− sha256 = "0961g4mci080f7y98zx9r4qw620l4z3na1ivvlyhhr1v4dywqvch";
55− };
56− }
50+in {
51+ rainloop-community = common {
52+ edition = "community";
53+ sha256 = "0a8qafm4khwj8cnaiaxvjb9073w6fr63vk1b89nks4hmfv10jn6y";
54+ };
55+ rainloop-standard = common {
56+ edition = "";
57+ sha256 = "0961g4mci080f7y98zx9r4qw620l4z3na1ivvlyhhr1v4dywqvch";
58+ };
59+}