mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-11-01 06:47:29 +00:00
feat(systemd): 服务单元改名 homeagent.service → hologramagent.service
部署目录早已迁到 /home/hologramagent,单元名是最后一处旧名。 UnitName 是唯一来源(internal/systemd/sync.go),deploy-plan.sh 同步。
This commit is contained in:
@ -17,7 +17,7 @@ DATA=${HA_DATA}
|
||||
BAK=/var/tmp/homed-backup-$(date +%Y%m%d-%H%M%S)
|
||||
NEW=${NEW_BIN:-/tmp/homed-ort}
|
||||
ADAPTERS=$DATA/adapters
|
||||
SVC=homeagent.service
|
||||
SVC=hologramagent.service
|
||||
|
||||
say() { printf '\n\033[1m%s\033[0m\n' "$*"; }
|
||||
info() { printf ' %s\n' "$*"; }
|
||||
|
||||
@ -48,7 +48,7 @@ import (
|
||||
)
|
||||
|
||||
// UnitName 是内核的服务单元名。
|
||||
const UnitName = "homeagent.service"
|
||||
const UnitName = "hologramagent.service"
|
||||
|
||||
// State 描述一次一致性检查的结果。
|
||||
type State struct {
|
||||
|
||||
Reference in New Issue
Block a user