summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-08 09:07:55 +0200
committerGitHub <noreply@github.com>2020-04-08 09:07:55 +0200
commitc59149052852889600d90d7059edb72f63b2b45f (patch)
tree3a200274c7ff50576dff20e16a354cebab6143c8 /themes
parent4be05a5fb85d48865b0536fa3891be3c8ed1d73b (diff)
parentfc150636b9393e31aa7d5a8d8320b111476ba2f1 (diff)
Merge pull request #3819 from ptpt52/theme
set mediaurlbase only when it is the first time to be installed
Diffstat (limited to 'themes')
-rwxr-xr-xthemes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap1
-rwxr-xr-xthemes/luci-theme-material/root/etc/uci-defaults/30_luci-theme-material1
-rwxr-xr-xthemes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-20201
-rwxr-xr-xthemes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt1
-rwxr-xr-xthemes/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy1
5 files changed, 5 insertions, 0 deletions
diff --git a/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap b/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
index b5161843f..4381a15c2 100755
--- a/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
+++ b/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
@@ -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
diff --git a/themes/luci-theme-material/root/etc/uci-defaults/30_luci-theme-material b/themes/luci-theme-material/root/etc/uci-defaults/30_luci-theme-material
index 96ab46185..7f07239ec 100755
--- a/themes/luci-theme-material/root/etc/uci-defaults/30_luci-theme-material
+++ b/themes/luci-theme-material/root/etc/uci-defaults/30_luci-theme-material
@@ -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
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 45e742ad7..7c49acfda 100755
--- 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
diff --git a/themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt b/themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt
index 77e2f6064..7ee8c193d 100755
--- a/themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt
+++ b/themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt
@@ -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
diff --git a/themes/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy b/themes/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy
index ab0299a9c..8c21ddddd 100755
--- a/themes/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy
+++ b/themes/luci-theme-rosy/root/etc/uci-defaults/30_luci-theme-rosy
@@ -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