Skip to content

Commit

Permalink
Support cPanel #697
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Nov 24, 2022
1 parent 2947304 commit 3948b11
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _include.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
*/
//define('APP_DATA_FOLDER_PATH', dirname(__DIR__) . '/snappymail-data/');
//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
Expand Down

0 comments on commit 3948b11

Please sign in to comment.