openwisp-config
openwisp-config copied to clipboard
[fix] Fix postinst/postrm in Makefile
The postinst/postrm directives must use IPKG_INSTROOT because they are executed by the image builder as well.
See:
- https://github.com/openwrt/packages/blob/master/utils/zsh/Makefile#L101 as an example
- https://openwrt.org/docs/techref/initscripts#enable_and_disable for initscripts
The failing build doesn't seem to be related to my changes.