Update include.php to use /home/user/.snappymail

Update include.php to use /home/user/.snappymail as config/data directory

/home/user/var isn´t a standard folder in linux instalation, but put in hidden folder inside home directory is the standard for cpanel addons.
This commit is contained in:
Mathías 2025-04-23 14:03:29 -03:00 committed by GitHub
parent dea7f4d1d8
commit d866e2db1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@
* Custom 'data' folder path * Custom 'data' folder path
*/ */
if (!empty($_ENV['CPANEL']) && isset($_ENV['HOME'])) { if (!empty($_ENV['CPANEL']) && isset($_ENV['HOME'])) {
define('APP_DATA_FOLDER_PATH', $_ENV['HOME'] . '/var/snappymail/'); define('APP_DATA_FOLDER_PATH', $_ENV['HOME'] . '/.snappymail/');
} else { } else {
exit('Not in cPanel'); exit('Not in cPanel');
} }