Files
HomeAgent/package/linux/deb/prerm
jianf 4b0f2f332a feat: Linux packaging, SDK v0.7.1, fix rawmode conflict
- go.mod: SDK pseudo-version -> v0.7.1 (remote tag), go.sum updated
- cmd/waiter/rawmode_linux.go: remove (conflicts with raw_unix.go)
- cmd/gui/package.json: add rpm/AppImage Linux targets
- package/package-linux.sh: cross-distro packaging script (deb/tar.gz/rpm)
- package/linux/: DEBIAN control files, postinst/prerm, RPM spec
2026-07-20 11:03:43 +08:00

20 lines
303 B
Bash
Executable File

#!/bin/sh
set -e
SERVICE_NAME="homeagent"
case "$1" in
remove|deconfigure)
if command -v systemctl >/dev/null 2>&1; then
systemctl stop "$SERVICE_NAME" 2>/dev/null || true
systemctl disable "$SERVICE_NAME" 2>/dev/null || true
fi
;;
upgrade)
;;
*)
;;
esac
exit 0