fix(openthread-br): preserve config during update (#14893)

This commit is contained in:
Tom Frenzel
2026-06-02 20:15:16 +02:00
committed by GitHub
parent f679553c0f
commit 131d521052

View File

@@ -47,6 +47,10 @@ function update_script() {
systemctl stop otbr-agent systemctl stop otbr-agent
msg_ok "Stopped Services" msg_ok "Stopped Services"
msg_info "Backing up Configuration"
cp /etc/default/otbr-agent /etc/default/otbr-agent.bak
msg_ok "Backed up Configuration"
msg_info "Updating Source" msg_info "Updating Source"
$STD git reset --hard origin/main $STD git reset --hard origin/main
$STD git submodule update --depth 1 --init --recursive $STD git submodule update --depth 1 --init --recursive
@@ -91,6 +95,10 @@ EOF
msg_ok "Configured Network" msg_ok "Configured Network"
fi fi
msg_info "Restoring Configuration"
mv /etc/default/otbr-agent.bak /etc/default/otbr-agent
msg_ok "Restored Configuration"
msg_info "Starting Services" msg_info "Starting Services"
systemctl start otbr-agent systemctl start otbr-agent
systemctl start otbr-web systemctl start otbr-web