Dokumente Add-On : Revisionen per script löschen
-
Hallo,
ich erzeuge mir mit diesem kleinen Script immer die aktuellen PDFs für die Notfallhandbücher. Dieses wird dann per Cronjob jeden Sonntag ausgeführt.
Aber dann habe ich ja für jede Woche eine neue "Revision".Gibt es einen Befehl, um die Revisionen vorher zu löschen?
#!/bin/bash rm /kt-data-reports/pdf/*.pdf declare -a document_template_id=(23) for ((i=0; i<${#document_template_id[@]};i=i+1)) ; do sudo /usr/bin/php /var/www/i-doit/htdocs/console.php documents --user=admin --password=admin \ --export --all_template=${document_template_id[i]} --create_revision sudo /usr/bin/php /var/www/i-doit/htdocs/console.php documents --user=admin --password=admin \ --export --all_template=${document_template_id[i]} --export_format=pdf --export_folder=/kt-data-reports/pdf -q -n doneGruß
Stephan
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login