luci-mod-admin-full: fix forced upgrade 2103/head
authorDirk Brenken <dev@brenken.org>
Mon, 20 Aug 2018 19:36:11 +0000 (21:36 +0200)
committerDirk Brenken <dev@brenken.org>
Mon, 20 Aug 2018 19:36:11 +0000 (21:36 +0200)
* fix logical glitch in forced upgrade logic

Signed-off-by: Dirk Brenken <dev@brenken.org>
modules/luci-mod-admin-full/luasrc/controller/admin/system.lua

index b278b21878eacb6129b14aaba0962c5691d68992..2fa7847fc6d2d2bf77bf8d07494f1620b7dcc50c 100644 (file)
@@ -295,7 +295,7 @@ function action_sysupgrade()
        --
        elseif step == 2 then
                local keep = (http.formvalue("keep") == "1") and "" or "-n"
-               local force = (http.formvalue("force") == "1") and "" or "-F"
+               local force = (http.formvalue("force") == "1") and "-F" or ""
                luci.template.render("admin_system/applyreboot", {
                        title = luci.i18n.translate("Flashing..."),
                        msg   = luci.i18n.translate("The system is flashing now.<br /> DO NOT POWER OFF THE DEVICE!<br /> Wait a few minutes before you try to reconnect. It might be necessary to renew the address of your computer to reach the device again, depending on your settings."),