mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Support cPanel #697
This commit is contained in:
parent
29473045f8
commit
3948b11998
1 changed files with 9 additions and 0 deletions
|
@ -29,6 +29,15 @@
|
||||||
*/
|
*/
|
||||||
//define('APP_DATA_FOLDER_PATH', dirname(__DIR__) . '/snappymail-data/');
|
//define('APP_DATA_FOLDER_PATH', dirname(__DIR__) . '/snappymail-data/');
|
||||||
//define('APP_DATA_FOLDER_PATH', '/var/external-snappymail-data-folder/');
|
//define('APP_DATA_FOLDER_PATH', '/var/external-snappymail-data-folder/');
|
||||||
|
if (isset($_ENV['CPANEL']) && isset($_ENV['TMPDIR'])) {
|
||||||
|
define('APP_DATA_FOLDER_PATH', $_ENV['TMPDIR'] . '/snappymail/');
|
||||||
|
/*
|
||||||
|
$_ENV['USER'] => <username>
|
||||||
|
$_ENV['HOME'] => /home/<username>
|
||||||
|
$_ENV['TMPDIR'] => /home/<username>/tmp
|
||||||
|
$_ENV['REAL_DBOWNER'] => <username>
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Additional configuration file name
|
* Additional configuration file name
|
||||||
|
|
Loading…
Reference in a new issue