From 81be0d4225c5fcdb3027c0ba87bac7d6eca68679 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Thu, 6 Jun 2019 20:18:48 +0200 Subject: [PATCH] Update format of shell script --- FAQ.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FAQ.md b/FAQ.md index 4bcb764..139f4a8 100644 --- a/FAQ.md +++ b/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