themes: don't reset theme on package upgrades
Fixes: #2743 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
c8b7e7631b
commit
5fd071aadb
4 changed files with 37 additions and 20 deletions
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci batch <<-EOF
|
|
||||||
|
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||||
|
uci batch <<-EOF
|
||||||
set luci.themes.Bootstrap=/luci-static/bootstrap
|
set luci.themes.Bootstrap=/luci-static/bootstrap
|
||||||
set luci.main.mediaurlbase=/luci-static/bootstrap
|
set luci.main.mediaurlbase=/luci-static/bootstrap
|
||||||
commit luci
|
commit luci
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci batch <<-EOF
|
|
||||||
|
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||||
|
uci batch <<-EOF
|
||||||
set luci.themes.Material=/luci-static/material
|
set luci.themes.Material=/luci-static/material
|
||||||
set luci.main.mediaurlbase=/luci-static/material
|
set luci.main.mediaurlbase=/luci-static/material
|
||||||
commit luci
|
commit luci
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci batch <<-EOF
|
|
||||||
|
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||||
|
uci batch <<-EOF
|
||||||
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
||||||
set luci.main.mediaurlbase=/luci-static/openwrt.org
|
set luci.main.mediaurlbase=/luci-static/openwrt.org
|
||||||
commit luci
|
commit luci
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci batch <<-EOF
|
|
||||||
|
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||||
|
uci batch <<-EOF
|
||||||
set luci.themes.Rosy=/luci-static/rosy
|
set luci.themes.Rosy=/luci-static/rosy
|
||||||
set luci.main.mediaurlbase=/luci-static/rosy
|
set luci.main.mediaurlbase=/luci-static/rosy
|
||||||
commit luci
|
commit luci
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue