feat: keep state.json and agent-key.json between upgrades

This commit is contained in:
wpetit 2023-03-25 16:46:00 +01:00
parent 02db564bb0
commit b4d6c75d52
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -0,0 +1,3 @@
/etc/machine-id
/var/lib/emissary/agent-key.json
/var/lib/emissary/state.json