Treat extractors as optional

@postlight/parser depends on a git URL and npm refuses to fetch those, so one
unreachable extractor aborted the whole install; readability and trafilatura cover
the same job and provision fine.
This commit is contained in:
MickLesk
2026-09-25 16:14:52 +02:00
parent 959a86983c
commit 57c299d068
2 changed files with 10 additions and 3 deletions
+7 -2
View File
@@ -57,8 +57,13 @@ $STD sudo -u archivebox /opt/archivebox/venv/bin/archivebox config --set "BASE_U
msg_ok "Initialized ArchiveBox"
msg_info "Installing Extractors"
$STD sudo -u archivebox /opt/archivebox/venv/bin/archivebox install
msg_ok "Installed Extractors"
# One unreachable extractor must not sink the install: @postlight/parser pulls a git
# dependency that npm refuses, and readability covers the same job.
if $STD sudo -u archivebox /opt/archivebox/venv/bin/archivebox install; then
msg_ok "Installed Extractors"
else
msg_warn "Some extractors stayed unavailable - ArchiveBox runs without them"
fi
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/archivebox.service