Configuration file of openwisp-config being overwritten (faulty conffiles section)

Hi everyone,

I just confirmed a bug in openwisp-config that was reported to me by others, if the package is upgraded via opkg install <url/file>, the config in /etc/config/openwisp is overwritten without asking for confirmation (which I remember was the old behavior), can anyone hint me at what may be causing the issue?

Here's the link to the Makefile of openwisp-config.

Thanks in advance.
Best regards

Federico

Well, the first observation is that the conffiles declaration is faulty.
It should be unindented (as the lines are passed as arguments and the leading spaces may cause trouble.

define Package/openwisp-config-$(BUILD_VARIANT)/conffiles
    /etc/config/openwisp
endef
1 Like

Thanks a lot @hnyman, I didn't know that, it worked.
Here's the fix, in case anyone has the same issue: https://github.com/openwisp/openwisp-config/commit/d557c4f24383e90e0608187f107d276170e207bb

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.