feat: keep state.json and agent-key.json between upgrades
This commit is contained in:
parent
02db564bb0
commit
b4d6c75d52
@ -8,6 +8,10 @@ install-emissary-files:
|
||||
mkdir -p files/etc/uci-defaults
|
||||
cp -r misc/emissary/uci-defaults/* files/etc/uci-defaults/
|
||||
|
||||
# Copy keep.d files
|
||||
mkdir -p files/lib/upgrade/keep.d
|
||||
cp -r misc/emissary/keep.d/* files/lib/upgrade/keep.d/
|
||||
|
||||
mkdir -p gitea-dl/emissary-agent_linux_$(EMISSARY_ARCH)
|
||||
cd gitea-dl && tar -xzf emissary-agent_*_linux_$(EMISSARY_ARCH).tar.gz -C emissary-agent_linux_$(EMISSARY_ARCH)
|
||||
|
||||
|
3
misc/emissary/keep.d/emissary
Normal file
3
misc/emissary/keep.d/emissary
Normal file
@ -0,0 +1,3 @@
|
||||
/etc/machine-id
|
||||
/var/lib/emissary/agent-key.json
|
||||
/var/lib/emissary/state.json
|
Loading…
Reference in New Issue
Block a user