Skip to content

luci-app-rustdesk-server: fixes firmware update causes config loss - #8946

Open
smallprogram wants to merge 1 commit into
openwrt:masterfrom
smallprogram:luci-app-rustdesk-server
Open

luci-app-rustdesk-server: fixes firmware update causes config loss#8946
smallprogram wants to merge 1 commit into
openwrt:masterfrom
smallprogram:luci-app-rustdesk-server

Conversation

@smallprogram

Copy link
Copy Markdown
Contributor

Fixes #8935
This fixes the issue where configuration settings were lost during a firmware upgrade.

Pull request details

Description

fixes firmware update causes configuration loss.


Tested on

OpenWrt version: OpenWrt 25.12.2
LuCI version: LuCI openwrt-25.12 branch
Web browser(s): Chrome


Checklist

  • (Nice to have) Includes what Issue it closes (e.g. openwrt/luci#issue-number).
  • (Nice to have) Includes what it depends on (e.g. openwrt/packages#pr-number in sister repo).

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit; commit message matches the diff. Three inline comments — the main one is that the new guard can never be true, because the package already ships the same section in /etc/config/rustdesk-server as a conffile.


Generated by Claude Code

@smallprogram
smallprogram force-pushed the luci-app-rustdesk-server branch from 402beb3 to 29abd53 Compare August 15, 2026 13:30
@smallprogram

Copy link
Copy Markdown
Contributor Author

request review and merge @jow-

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit (force-push 402beb329abd53); the commit message still matches the diff.

The two substantive points from the previous review are addressed: the never-reachable guard is gone because the whole uci-defaults script is removed, and PKG_VERSION now moves 2026031320260815 so the fix is actually reachable by apk/opkg upgrade. The shipped root/etc/config/rustdesk-server plus its conffiles registration in Makefile:13-15 still provide the defaults on fresh install and preserve user values across sysupgrade, so nothing is lost by the removal.

One documentation leftover flagged inline.


Generated by Claude Code

Fixes: openwrt#8935
This fixes the issue where configuration settings were
lost during a firmware upgrade
Signed-off-by: David Mandy <smallprogramzhusir@gmail.com>
@smallprogram
smallprogram force-pushed the luci-app-rustdesk-server branch from 29abd53 to 45bc5e0 Compare August 15, 2026 16:18
@smallprogram

Copy link
Copy Markdown
Contributor Author

This Claude Code is amazing. @efahl

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit (force-push 29abd5345bc5e0); no new issues found.

The only delta since the last review is the README architecture tree, which now drops the uci-defaults/50-luci-rustdesk-server line and promotes init.d/rustdesk-server to the last └── branch of the etc/ subtree — exactly the leftover flagged previously. No remaining references to the removed script anywhere in the package, and the commit message still matches the diff. CI on 45bc5e0 is green (build, eslint, FormalityCheck).


Generated by Claude Code

@efahl efahl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

luci-app-rustdesk-server: retaining configuration updates will revert the configuration

3 participants