mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-26 15:59:29 +08:00
Added README to /data/ folder
This commit is contained in:
parent
948663519e
commit
21fe3aa25c
3 changed files with 13 additions and 6 deletions
|
@ -11,20 +11,22 @@
|
|||
//define('MULTIDOMAIN', 1);
|
||||
|
||||
/**
|
||||
* Custom 'data' folder path
|
||||
* @return string
|
||||
*/
|
||||
function __get_custom_data_full_path()
|
||||
{
|
||||
return '';
|
||||
return dirname(__DIR__) . '/snappymail-data';
|
||||
return '/var/external-snappymail-data-folder'; // custom data folder path
|
||||
return '/var/external-snappymail-data-folder';
|
||||
}
|
||||
|
||||
/**
|
||||
* Additional configuration file name
|
||||
* @return string
|
||||
*/
|
||||
function __get_additional_configuration_name()
|
||||
{
|
||||
return '';
|
||||
return defined('APP_SITE') && 0 < strlen(APP_SITE) ? APP_SITE.'.ini' : ''; // additional configuration file name
|
||||
return defined('APP_SITE') && 0 < strlen(APP_SITE) ? APP_SITE.'.ini' : '';
|
||||
}
|
||||
|
|
2
data/README.md
Normal file
2
data/README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
You can move this folder outside public http access for security.
|
||||
Edit and rename /_include.php to set the new location.
|
11
release.php
11
release.php
|
@ -72,14 +72,17 @@ foreach ($files as $file) {
|
|||
|
||||
$tar->buildFromDirectory('./', "@snappymail/v/{$package->version}@");
|
||||
|
||||
$zip->addFromString('data/.htaccess', $package->version);
|
||||
$tar->addFromString('data/.htaccess', $package->version);
|
||||
$zip->addFile('data/.htaccess');
|
||||
$tar->addFile('data/.htaccess');
|
||||
|
||||
$zip->addFromString('data/VERSION', $package->version);
|
||||
$tar->addFromString('data/VERSION', $package->version);
|
||||
|
||||
//$zip->addFromString('data/EMPTY', $package->version);
|
||||
//$tar->addFromString('data/EMPTY', $package->version);
|
||||
$zip->addFile('data/README.md');
|
||||
$tar->addFile('data/README.md');
|
||||
|
||||
//$zip->addFile('data/EMPTY');
|
||||
//$tar->addFile('data/EMPTY');
|
||||
|
||||
$zip->addFile('_include.php');
|
||||
$tar->addFile('_include.php');
|
||||
|
|
Loading…
Reference in a new issue