deb-bootupd/debian/prerm
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

11 lines
345 B
Bash
Executable file

#!/bin/sh
set -e
# Pre-removal script for deb-bootupd
# This script runs before the package is removed
# Stop the bootloader-update service if it's running
# Note: This is a oneshot service, so it may not be running
if command -v systemctl >/dev/null 2>&1; then
deb-systemd-invoke stop bootloader-update.service >/dev/null 2>&1 || true
fi