setup-opds.sh: use --mount type=bind instead of -v for FUSE mount propagation into dir2opds container

This commit is contained in:
Justin Oros
2026-04-20 21:22:27 -07:00
parent 56e0fc38c0
commit 80d5f1d1fd

View File

@@ -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 -