mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
- Fix debian.yml: pin nfpm version, add permissions, improve test job with user creation, init test, and status check - Fix homebrew.yml: use PyPI JSON API (macOS-compatible, no grep -oP), wait for PyPI availability on release, use generated formula not template, add Linux (Linuxbrew) test job alongside macOS - Add release.yml orchestrator: pip → deb + brew + docker in order - Add workflow_call triggers to pip.yml and docker.yml - Fix build_brew.sh: replace grep -oP with Python-based PyPI API, add on_linux deps (pkg-config, openssl, libffi) - Fix setup.sh: use GitHub API to find correct .deb download URL (filename includes version number) - Fix postinstall.sh: create archivebox system user, pin version from package, check for systemd before daemon-reload - Fix preremove.sh: stop service before removal, check for systemd - Fix install.sh: fallback to latest if pinned version not on PyPI - Add on_linux deps to brew formula for Linuxbrew support - Tested: .deb builds, installs, creates user, runs archivebox init https://claude.ai/code/session_01Vx1EsNrNySgsc8Y67dGzCn
19 lines
635 B
Bash
Executable File
19 lines
635 B
Bash
Executable File
#!/bin/bash
|
|
# preremove script for archivebox .deb package
|
|
set -e
|
|
|
|
# Stop the service if running
|
|
if command -v systemctl >/dev/null 2>&1 && [ -d /run/systemd/system ]; then
|
|
systemctl stop archivebox 2>/dev/null || true
|
|
systemctl disable archivebox 2>/dev/null || true
|
|
fi
|
|
|
|
echo "[+] Removing ArchiveBox virtualenv..."
|
|
rm -rf /opt/archivebox/venv
|
|
|
|
echo "[i] Your ArchiveBox data in /var/lib/archivebox has NOT been removed."
|
|
echo " The 'archivebox' system user has NOT been removed."
|
|
echo " Remove them manually if you no longer need them:"
|
|
echo " sudo rm -rf /var/lib/archivebox"
|
|
echo " sudo userdel archivebox"
|