mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-28 07:07:17 +02:00
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:
+3
-1
@@ -83,7 +83,9 @@ EOF
|
||||
ln -sf /opt/archivebox/venv/bin/archivebox /usr/local/bin/archivebox
|
||||
cd /opt/archivebox/data
|
||||
$STD sudo -u archivebox /opt/archivebox/venv/bin/archivebox init
|
||||
$STD sudo -u archivebox /opt/archivebox/venv/bin/archivebox install
|
||||
# npm refuses the git dependency behind @postlight/parser, so treat extractors as optional.
|
||||
$STD sudo -u archivebox /opt/archivebox/venv/bin/archivebox install ||
|
||||
msg_warn "Some extractors stayed unavailable - ArchiveBox runs without them"
|
||||
msg_ok "Updated ArchiveBox"
|
||||
|
||||
msg_info "Starting Service"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user