Merge pull request #3819 from ptpt52/theme
set mediaurlbase only when it is the first time to be installed
This commit is contained in:
commit
c591490528
5 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci get luci.themes.Bootstrap >/dev/null 2>&1 || \
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Bootstrap=/luci-static/bootstrap
|
||||
set luci.main.mediaurlbase=/luci-static/bootstrap
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci get luci.themes.Material >/dev/null 2>&1 || \
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Material=/luci-static/material
|
||||
set luci.main.mediaurlbase=/luci-static/material
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci get luci.themes.OpenWrt2020 >/dev/null 2>&1 || \
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenWrt2020=/luci-static/openwrt2020
|
||||
set luci.main.mediaurlbase=/luci-static/openwrt2020
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci get luci.themes.OpenWrt >/dev/null 2>&1 || \
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
||||
set luci.main.mediaurlbase=/luci-static/openwrt.org
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$PKG_UPGRADE" != 1 ]; then
|
||||
uci get luci.themes.Rosy >/dev/null 2>&1 || \
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Rosy=/luci-static/rosy
|
||||
set luci.main.mediaurlbase=/luci-static/rosy
|
||||
|
|
Loading…
Reference in a new issue