diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-06-03 16:49:10 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-06-03 16:49:10 +0200 |
commit | 5fd071aadbcaa3b136a37fa2cbcb9799b0153e2a (patch) | |
tree | 48dba67a6604499cc6d7c1f1543fd43e8ffc90a4 /themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt | |
parent | c8b7e7631b35f00c51666670b66f6a32c188f1d8 (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-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt')
-rwxr-xr-x | themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt | 15 |
1 files changed, 10 insertions, 5 deletions
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 aa0ba0c231..77e2f6064b 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,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 |