diff --git a/hub/setup-opds.sh b/hub/setup-opds.sh index c42ce55..ade5951 100755 --- a/hub/setup-opds.sh +++ b/hub/setup-opds.sh @@ -189,9 +189,9 @@ dir2opds) --name dir2opds \ --restart unless-stopped \ --network opds-net \ - -v "${BOOKS_PATH}:/books:ro" \ + --mount "type=bind,source=${BOOKS_PATH},target=/books,readonly" \ "$OPDS_IMAGE" \ - /dir2opds -dir /books -hide-dot-files + /dir2opds -dir /books -hide-dot-files -calibre ;; stump) mkdir -p "${OPDS_DIR}/stump-config" @@ -319,7 +319,7 @@ fi EOF chmod +x "$WATCHDOG_SCRIPT" -CRON_LINE="@reboot sleep 30 && $WATCHDOG_SCRIPT" +CRON_LINE="@reboot sleep 120 && $WATCHDOG_SCRIPT" EXISTING_ROOT_CRON=$(crontab -l 2>/dev/null || true) if ! echo "$EXISTING_ROOT_CRON" | grep -qF "opds-watchdog"; then { echo "$EXISTING_ROOT_CRON"; echo "$CRON_LINE"; } | crontab -