projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-theme-*: set mediaurlbase if it is the first time to be installed
[project/luci.git]
/
themes
/
luci-theme-openwrt-2020
/
root
/
etc
/
uci-defaults
/
30_luci-theme-openwrt-2020
diff --git
a/themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020
b/themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020
index 45e742ad73f9cf6f8e90403549f61cf3fff8909a..7c49acfda9e49ee50b037f623ba10554cbe1972a 100755
(executable)
--- a/
themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020
+++ b/
themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020
@@
-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