mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-22 01:48:11 +00:00
- 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
20 lines
303 B
Bash
Executable File
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
|