seeddms-code/utils
2023-10-31 21:14:32 +01:00
..
.htaccess support for apache 2.4 2019-07-30 06:38:54 +02:00
adddoc.php do not include inc/inc.ClassNotificationService.php and inc.ClassEmailNotify.php 2023-04-18 12:48:20 +02:00
createfolder.php replace all ˝\n" by PHP_EOL 2020-09-04 09:21:40 +02:00
delete.php script for deleting a docuemnt 2023-01-03 14:09:48 +01:00
expireddocs.php fix get smtp parameters 2023-02-27 19:36:14 +01:00
importfs.php fix checking for metadatafile 2023-10-31 21:14:04 +01:00
indexer.php check if adding to document to index succeeded 2023-04-15 13:24:12 +02:00
open-tasks.php skip user if disabled 2017-07-20 17:00:41 +02:00
README.md more info on scripts in utils folder 2018-11-13 08:48:00 +01:00
schedulercli.php show parameters of task if they are an array 2023-04-06 12:13:47 +02:00
seeddms-adddoc add support for uploading new document version 2020-05-25 14:45:55 +02:00
seeddms-createfolder replace all ˝\n" by PHP_EOL 2020-09-04 09:21:40 +02:00
seeddms-delete script for deleting a docuemnt 2023-01-03 14:09:48 +01:00
seeddms-expireddocs script for informing users about expired documents 2023-01-03 14:13:06 +01:00
seeddms-importfs script for uploading files from local disc 2023-01-03 14:16:43 +01:00
seeddms-indexer do not check for db version if disabled 2020-06-03 18:21:56 +02:00
seeddms-open-tasks add script for checking for open tasks of each or individual users 2017-07-19 08:26:03 +02:00
seeddms-schedulercli determine SEEDDMS_HOME if not explicitly set 2020-05-20 20:54:34 +02:00
seeddms-xmldump get SEEDMS_HOME from parent dir if not set 2020-09-04 09:34:45 +02:00
seeddms-xmlimport add missing shell script 2023-04-11 12:37:27 +02:00
xmldump.php Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2022-02-12 19:48:56 +01:00
xmlimport.php Merge branch 'seeddms-5.1.x' into seeddms-6.0.x 2020-09-04 09:31:30 +02:00

Running one of the scripts

Scripts in this folder are ment to be called on the command line by either executing one of the shell wrappers seeddms-* or by calling php -f <scriptname> -- <script options>. Most scripts have an option -h or --help which list the available script options.

Be aware that this scripts are not officially supported. Use them with care and always ensure to have a backup of your data before running any of them.

Do not allow regular users to run this scripts!

None of the scripts do any authentication. They all run with a SeedDMS admin account! So anybody being allowed to run the scripts can modify your DMS content.

Adding documents

Single documents can be added with seeddms-adddoc. The script is just for adding new documents but not for adding a new version. As the script is just a small wrapper around the controller for adding documents by the web gui, it will also trigger all hooks, but it will not send any notification to the users.

If you run seeddms-adddoc make sure to run it with the permissions of the user running your web server. It will copy files right into the content directory of your SeedDMS installation. Don't do this as root because you will most likely not be able to remove those documents via the web gui. If this happens by accident, you will still be able to fix it manually by setting the propper file permissions for the document just created in your content directory. Just change the owner of the document folder and its content to the user running the web server.

Instead of regulary updating the full text index from the web gui, you can as well run seeddms-indexer in a cron job. It will either update or recreate the full text index.