1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-13 03:30:30 +00:00

Update format of shell script

Ozzie Isaacs 2019-06-06 20:18:48 +02:00
parent db949c5530
commit 81be0d4225

6
FAQ.md

@ -71,11 +71,13 @@ Calibre-Web has to be restarted after changing the policy.xml file. Covers shoul
It's possible to upload several books at once by selecting more than one file. The limitation is the upload size of the calibre-web interal server (several hundred megabyte). Another posibility is via a normal shall script by watching a folder content. Prerequisites for the example below is a installed calibre program. The script has to be called regulary (cron job). The script watches for content in the supervised path, calls calibre to add the files in the folder to the library and deletes the files in the last step from the source folder.
``#!/bin/bash
```
#!/bin/bash
if [ "$(ls -A [folder to watch] )" ]; then
calibredb add -r "[folder to watch]" --library-path="[path to calibre library]"
rm [folder to watch]/*
fi``
fi
```
### Login Kobo