mirror of
https://github.com/openwrt/luci
synced 2025-01-09 04:28:37 +08:00
themes: don't reset theme on package upgrades
Fixes: #2743
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 5fd071aadb
)
This commit is contained in:
parent
84692e5bf6
commit
7e9de0d25f
@ -1,7 +1,11 @@
|
||||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Bootstrap=/luci-static/bootstrap
|
||||
set luci.main.mediaurlbase=/luci-static/bootstrap
|
||||
commit luci
|
||||
EOF
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Bootstrap=/luci-static/bootstrap
|
||||
set luci.main.mediaurlbase=/luci-static/bootstrap
|
||||
commit luci
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -1,5 +1,11 @@
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic
|
||||
set luci.main.mediaurlbase=/luci-static/freifunk-generic
|
||||
commit luci
|
||||
EOF
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic
|
||||
set luci.main.mediaurlbase=/luci-static/freifunk-generic
|
||||
commit luci
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -1,7 +1,11 @@
|
||||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Material=/luci-static/material
|
||||
set luci.main.mediaurlbase=/luci-static/material
|
||||
commit luci
|
||||
EOF
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Material=/luci-static/material
|
||||
set luci.main.mediaurlbase=/luci-static/material
|
||||
commit luci
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -1,6 +1,11 @@
|
||||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
||||
set luci.main.mediaurlbase=/luci-static/openwrt.org
|
||||
commit luci
|
||||
EOF
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
||||
set luci.main.mediaurlbase=/luci-static/openwrt.org
|
||||
commit luci
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user