luci-app-attendedsysupgrade: upgrade to version 2
authorPaul Spooren <paul@spooren.de>
Sat, 21 Oct 2017 15:01:07 +0000 (17:01 +0200)
committerPaul Spooren <spooren@informatik.uni-leipzig.de>
Sat, 4 Nov 2017 18:25:10 +0000 (19:25 +0100)
commit26c93debe9540412df464f200a7b4d5c7e8d2ac7
treef5d20470e29cd5035f81b56e0f1ea65d855f88cb
parent9e325a5162296964661c60e9ccecb134936b4ec6
luci-app-attendedsysupgrade: upgrade to version 2

Add required ubus acls from package rpcd-mod-attendedsysupgrade.

luci-app-attendedsysupgrade: add postinst script

removes caches and restarts uhttpd as mentioned here:
https://github.com/aparcar/gsoc17-attended-sysupgrade/issues/58#issuecomment-339370803

luci-app-attendedsysupgrade: redesign

simplified the interface and made it more "luci" like

simplify ubus interaction, use uci_call und ubus_call functions

add optional settings:

auto_search:
search on opening the view without clicking

advanced_mode:
if set, allow package edits, show build log

rename updateserver to upgradeserver
rename url to server_url

luci-app-attendedsysupgrade: rename uci options

remove leading "upgrade" from uci options
also rename server_url to url

cleaning

use new api/ urls

wait for successfull reboot

Signed-off-by: Paul Spooren <paul@spooren.de>
applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm
applications/luci-app-attendedsysupgrade/root/etc/uci-defaults/40_luci-attendedsysupgrade [new file with mode: 0755]
applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json [new file with mode: 0644]