{"action":"opened","issue":{"url":"https://api.github.com/repos/RainLoop/rainloop-webmail/issues/983","repository_url":"https://api.github.com/repos/RainLoop/rainloop-webmail","labels_url":"https://api.github.com/repos/RainLoop/rainloop-webmail/issues/983/labels{/name}","comments_url":"https://api.github.com/repos/RainLoop/rainloop-webmail/issues/983/comments","events_url":"https://api.github.com/repos/RainLoop/rainloop-webmail/issues/983/events","html_url":"https://github.com/RainLoop/rainloop-webmail/issues/983","id":145003146,"number":983,"title":"Custom Data Path","user":{"login":"CarrotCruncher","id":16117099,"avatar_url":"https://avatars.githubusercontent.com/u/16117099?v=3","gravatar_id":"","url":"https://api.github.com/users/CarrotCruncher","html_url":"https://github.com/CarrotCruncher","followers_url":"https://api.github.com/users/CarrotCruncher/followers","following_url":"https://api.github.com/users/CarrotCruncher/following{/other_user}","gists_url":"https://api.github.com/users/CarrotCruncher/gists{/gist_id}","starred_url":"https://api.github.com/users/CarrotCruncher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarrotCruncher/subscriptions","organizations_url":"https://api.github.com/users/CarrotCruncher/orgs","repos_url":"https://api.github.com/users/CarrotCruncher/repos","events_url":"https://api.github.com/users/CarrotCruncher/events{/privacy}","received_events_url":"https://api.github.com/users/CarrotCruncher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-31T20:02:16Z","updated_at":"2016-03-31T20:02:16Z","closed_at":null,"body":"Hi. Can I ask, what is the correct way to use a custom data path?\r\n\r\nI'm trying to install RainLoop on the OpenShift Online platform, which needs a specific directory for persistent data. This can be referred to by the $OPENSHIFT_DATA_DIR environment variable.\r\n\r\nI don't really know PHP but I've created an include.php file in the root directory that contains the following:\r\n\r\n```\r\n<?php\r\n\tdefine('DATA_DIR',getenv('OPENSHIFT_DATA_DIR'));\r\n\t$sCustomDataPath = DATA_DIR;\r\n```\r\n\r\nHowever the data directory is still being created in the default location.\r\n\r\nIs this simply bad coding on my part or am I going about this the wrong way? Many thanks."}}