[Buildroot] [PATCH] swupdate: install web application version 2

Stefan Becker chemobejk at gmail.com
Mon Apr 16 11:44:44 UTC 2018


The old web application under www/ and mongoose API v1 no longer work
after upgrading to 2018.03. Install web application version 2 from
examples/www/v2/ to /var/www/swupdate/ instead.

This fix does not address the fact that you can't rebuild the new web
application under buildroot. That would require host Node.js & npm to
run the application build. I.e. for now users have to live with the
example application or apply patches directly to the built version of
the appication.

Signed-off-by: Stefan Becker <chemobejk at gmail.com>
---
 package/swupdate/swupdate.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk
index 8649931eb7..5dce9cd46c 100644
--- a/package/swupdate/swupdate.mk
+++ b/package/swupdate/swupdate.mk
@@ -125,7 +125,7 @@ define SWUPDATE_INSTALL_TARGET_CMDS
 	$(INSTALL) -D -m 0755 $(@D)/swupdate $(TARGET_DIR)/usr/bin/swupdate
 	$(if $(BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE), \
 		mkdir -p $(TARGET_DIR)/var/www/swupdate; \
-		cp -dpf $(@D)/www/* $(TARGET_DIR)/var/www/swupdate)
+		cp -dpRf $(@D)/examples/www/v2/* $(TARGET_DIR)/var/www/swupdate)
 endef
 
 # Checks to give errors that the user can understand
-- 
2.14.3



More information about the buildroot mailing list