File seeddms-config.patch of Package seeddms
Index: seeddms60x/conf/settings.xml
===================================================================
--- seeddms60x.orig/conf/settings.xml
+++ seeddms60x/conf/settings.xml
@@ -55,7 +55,7 @@
enableFolderTree = "true"
expandFolderTree = "1"
enableLanguageSelector = "true"
- stopWordsFile = ""
+ stopWordsFile = "/etc/seeddms/stopwords.txt"
sortUsersInList = ""
enableDropUpload = "true"
enableRecursiveCount = "false"
@@ -100,18 +100,18 @@
- backupDir: where the backups are saved
-->
<server
- rootDir = ""
- httpRoot = "/seeddms60x/"
- contentDir = ""
- stagingDir = ""
- luceneDir = ""
+ rootDir = "/srv/www/seeddms/"
+ httpRoot = "/seeddms/"
+ contentDir = "/var/lib/seeddms/"
+ stagingDir = "/var/lib/seeddms/staging/"
+ luceneDir = "/var/lib/seeddms/lucene/"
logFileEnable = "true"
logFileRotation = "d"
enableLargeFileUpload = "false"
partitionSize = "2000000"
- dropFolderDir = ""
- cacheDir = ""
- backupDir = ""
+ dropFolderDir = "/var/lib/seeddms/drop"
+ cacheDir = "/var/lib/seeddms/cache"
+ backupDir = "/var/lib/seeddms/backup"
logFileMaxLevel="6"
/>
<!--
@@ -208,11 +208,11 @@
-->
<database
dbDriver = "sqlite"
- dbHostname = ""
- dbDatabase = ""
+ dbHostname = "localhost"
+ dbDatabase = "/var/lib/seeddms/content.db"
dbUser = ""
dbPass = ""
- doNotCheckVersion = "false"
+ doNotCheckVersion = "true"
/>
<!--
- smtpServer: SMTP Server hostname
@@ -294,7 +294,7 @@
contentOffsetDir = "1048576"
maxDirID = "0"
updateNotifyTime = "86400"
- extraPath = ""
+ extraPath = "/srv/www/seeddms/pear/"
maxExecutionTime = "30"
cmdTimeout = "10"
/>
Index: seeddms60x/seeddms/inc/inc.Settings.php
===================================================================
--- seeddms60x.orig/seeddms/inc/inc.Settings.php
+++ seeddms60x/seeddms/inc/inc.Settings.php
@@ -78,7 +78,7 @@ ini_set('include_path', $settings->_root
/* Add root Dir.'../pear'. Needed because the SeedDMS_Core, etc. are included
* relative to it.
*/
-ini_set('include_path', $settings->_rootDir.'../pear'. PATH_SEPARATOR .ini_get('include_path'));
+ini_set('include_path', $settings->_rootDir.'/pear'. PATH_SEPARATOR .ini_get('include_path'));
/* composer is installed in pear directory, but install tool does not need it */
if(!defined("SEEDDMS_INSTALL"))
Index: seeddms60x/seeddms/doc/README.Install.md
===================================================================
--- seeddms60x.orig/seeddms/doc/README.Install.md
+++ seeddms60x/seeddms/doc/README.Install.md
@@ -68,7 +68,7 @@ your `data` and `conf` directory if it i
This is a major security risk.
Make sure that the subdirectory `seeddms51x/data` and the configuration file
-`seeddms51/conf/settings.xml` is writeable by your web server. All other
+`/etc/seeddms/settings.xml` is writeable by your web server. All other
directories can be just readable by your web server, though it is advisable
to even protect them from writing.
@@ -76,7 +76,7 @@ Adjusting the configuration of SeedDMS
---------------------------------------
In the next step you need to adjust the configuration file in
-`seeddms51x/conf/settings.xml`. Open the file in your favorite text editor
+`/etcseeddms/settings.xml`. Open the file in your favorite text editor
and search for `/home/wwww-data`. Replace that part in any path found with your
base directory where you placed seeddms51x (e.g. /var/www/html/seeddms51x).
Alternatively, you can open the installer with a browser at
@@ -241,8 +241,8 @@ in your current installation with new ve
3. copy the directory `pear` from the unpacked archive into your current
installation, replacing the existing directory. Make a backup of `pear` before
the replacement if you want to ensure to be able to go back to your old version.
-4. you may compare your `conf/settings.xml` file with the shipped version
- `conf/settings.xml.template` for new parameters. If you don't do it, the next
+4. you may compare your `/etc/seeddms/settings.xml` file with the shipped version
+ `/etc/seeddms/settings.xml.template` for new parameters. If you don't do it, the next
time you save the configuration the default values will be used.
5. create a file `ENABLE_INSTALL_TOOL` in the `conf` directory and point
your browser at http://hostname/seeddms/install
@@ -551,7 +551,7 @@ instances of SeedDMS using different ver
-----------------------------------------------------
Create a database and data store for each instance and adjust the database
-settings in conf/settings.xml or run the installation tool.
+settings in /etc/seeddms/settings.xml or run the installation tool.
Point your web browser towards the index.php file in your new instance.
Index: seeddms60x/seeddms/doc/README.cron
===================================================================
--- seeddms60x.orig/seeddms/doc/README.cron
+++ seeddms60x/seeddms/doc/README.cron
@@ -22,7 +22,7 @@ If the configuration file of SeedDMS is
on the command, though this should not be needed in a regular installation
obeying the directory structure of the quickstart archive.
-*/5 * * * * /var/www/seeddms60x/seeddms/utils/seeddms-schedulercli --config /var/www/seeddms60x/seeddms/conf/settings.xml --mode=run
+*/5 * * * * /var/www/seeddms60x/seeddms/utils/seeddms-schedulercli --config /etc/seeddms/settings.xml --mode=run
For testing purposes it may be usefull to run `seeddms-schedulercli` in list mode.
Index: seeddms60x/seeddms/install/install.php
===================================================================
--- seeddms60x.orig/seeddms/install/install.php
+++ seeddms60x/seeddms/install/install.php
@@ -86,7 +86,7 @@ if (!file_exists($configDir."/ENABLE_INS
if (!file_exists($configDir."/settings.xml")) {
if(!copy("settings.xml.template_install", $configDir."/settings.xml")) {
- echo "Could not create initial configuration file from template. Check directory permission of conf/.";
+ echo "Could not create initial configuration file from template. Check directory permission of /etc/seeddms.";
exit;
}
}
Index: seeddms60x/seeddms/utils/importmail.php
===================================================================
--- seeddms60x.orig/seeddms/utils/importmail.php
+++ seeddms60x/seeddms/utils/importmail.php
@@ -68,7 +68,7 @@ function usage() { /* {{{ */
echo " PGP-SIGNATURE: pgp signatures".PHP_EOL;
echo PHP_EOL;
echo "Example:".PHP_EOL;
- echo " seeddms-importmail --config=/home/www-data/seeddms/conf/settings.xml --imap-urn \"{mail.mydomain.com:993/imap/ssl/novalidate-cert}INBOX\" --imap-user admin --imap-password - --mode=\"since:-2 days\" --user=admin -F 8376 --subfolder --attribute=\"toaddress:Mail: To\" --attribute=\"fromaddress:Mail: From\" --attribute=\"subject:Mail: Subject\" --attribute=\"date:Mail: Date\" --type=\\!PGP-SIGNATURE".PHP_EOL;
+ echo " seeddms-importmail --config=/etc/seeddms/settings.xml --imap-urn \"{mail.mydomain.com:993/imap/ssl/novalidate-cert}INBOX\" --imap-user admin --imap-password - --mode=\"since:-2 days\" --user=admin -F 8376 --subfolder --attribute=\"toaddress:Mail: To\" --attribute=\"fromaddress:Mail: From\" --attribute=\"subject:Mail: Subject\" --attribute=\"date:Mail: Date\" --type=\\!PGP-SIGNATURE".PHP_EOL;
echo PHP_EOL;
echo " This will import all attachments of mails received within the last two days. It creates".PHP_EOL;
echo " a folder for each mail (below folder 8376) and puts all attachments into it.".PHP_EOL;
@@ -76,7 +76,7 @@ function usage() { /* {{{ */
echo " The attributes have to exist already. Attachments of type PGP-SIGNATURE will not be".PHP_EOL;
echo " imported. The password for the mailbox is read from stdin.".PHP_EOL;
echo PHP_EOL;
- echo " seeddms-importmail --config=/home/www-data/seeddms/conf/settings.xml --imap-urn \"{mail.mydomain.com:993/imap/ssl/novalidate-cert}INBOX\" --imap-user admin --imap-password - --mode=\"on:2016-06-07\" --user=admin -F 8376 --eml".PHP_EOL;
+ echo " seeddms-importmail --config=/etc/seeddms/settings.xml --imap-urn \"{mail.mydomain.com:993/imap/ssl/novalidate-cert}INBOX\" --imap-user admin --imap-password - --mode=\"on:2016-06-07\" --user=admin -F 8376 --eml".PHP_EOL;
echo " This will import all mails in rfc822 format received on 7th of June 2016.".PHP_EOL;
} /* }}} */