deb-bootupd/debian/postrm
robojerk 73b43239e9
Some checks failed
Build deb-bootupd Artifacts / build (push) Failing after 6m14s
Simple Build and Upload / build (push) Failing after 2m0s
Add Debian packaging and update Forgejo workflow
- Add complete Debian packaging configuration (debian/ directory)
- Create build-deb.sh script for building packages
- Update Forgejo workflow to build and upload .deb artifacts
- Add comprehensive version naming for both binary and Debian artifacts
- Update .gitignore to exclude build artifacts and packaging files
- Add PACKAGING.md documentation
- Add test-deb.sh for testing package installation
2025-08-10 11:30:19 -07:00

19 lines
573 B
Bash
Executable file

#!/bin/sh
set -e
# Post-removal script for deb-bootupd
# This script runs after the package is removed
# Reload systemd to clean up service references
if command -v systemctl >/dev/null 2>&1; then
deb-systemd-invoke daemon-reload >/dev/null 2>&1 || true
fi
# Remove the symlink if it still exists
if [ -L /usr/bin/bootupctl ]; then
rm -f /usr/bin/bootupctl
fi
# Note: We don't remove /boot/bootupd-state.json as it contains
# important bootloader state that should persist across package removals
# Users can manually remove it if they want to reset everything