From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Becker Date: Mon, 16 Apr 2018 14:44:44 +0300 Subject: [Buildroot] [PATCH] swupdate: install web application version 2 In-Reply-To: <20180415195628.4CE0F88476@busybox.osuosl.org> References: <20180415195628.4CE0F88476@busybox.osuosl.org> Message-ID: <20180416114444.26220-1-chemobejk@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 --- 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