summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-material
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-06-03 16:49:10 +0200
committerJo-Philipp Wich <jo@mein.io>2019-06-03 16:49:10 +0200
commit5fd071aadbcaa3b136a37fa2cbcb9799b0153e2a (patch)
tree48dba67a6604499cc6d7c1f1543fd43e8ffc90a4 /themes/luci-theme-material
parentc8b7e7631b35f00c51666670b66f6a32c188f1d8 (diff)
themes: don't reset theme on package upgrades
Fixes: #2743 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-material')
-rwxr-xr-xthemes/luci-theme-material/root/etc/uci-defaults/30_luci-theme-material14
1 files changed, 9 insertions, 5 deletions
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 b01337821c..96ab461859 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,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