mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
- Remove --setup flag from systemd service and CI (not valid in 0.9.x) - Remove release triggers from debian/homebrew workflows (handled by release.yml) - Fix brew post_install to set DATA_DIR so it initializes in var/archivebox - Add PATH export to deb wrapper script for bundled console scripts - Remove pip install fallback in install.sh (strict version pinning) - Guard preremove.sh cleanup to only run on remove/purge, not upgrade - Initialize SDIST_URL/SDIST_SHA256 in build_brew.sh (nounset safety) - Pin awalsh128/cache-apt-pkgs-action to v1.6.0 (supply chain safety) https://claude.ai/code/session_01Vx1EsNrNySgsc8Y67dGzCn
16 lines
557 B
Bash
Executable File
16 lines
557 B
Bash
Executable File
#!/bin/bash
|
|
# /usr/bin/archivebox - wrapper script installed by the archivebox .deb package
|
|
# Activates the pip-installed virtualenv and runs archivebox CLI
|
|
|
|
ARCHIVEBOX_VENV="/opt/archivebox/venv"
|
|
|
|
if [ ! -f "$ARCHIVEBOX_VENV/bin/archivebox" ]; then
|
|
echo "Error: ArchiveBox is not installed in $ARCHIVEBOX_VENV"
|
|
echo "Try running: sudo /opt/archivebox/install.sh"
|
|
exit 1
|
|
fi
|
|
|
|
# Export venv bin to PATH so bundled console scripts (yt-dlp, etc.) are discoverable
|
|
export PATH="$ARCHIVEBOX_VENV/bin:$PATH"
|
|
exec "$ARCHIVEBOX_VENV/bin/archivebox" "$@"
|