mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 02:56:11 +05: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
22 lines
789 B
Bash
Executable File
22 lines
789 B
Bash
Executable File
#!/bin/bash
|
|
# preremove script for archivebox .deb package
|
|
set -e
|
|
|
|
# Only clean up on full removal, not during upgrade
|
|
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
|
|
# 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"
|
|
fi
|