themes: don't reset theme on package upgrades
[project/luci.git] / themes / luci-theme-openwrt / root / etc / uci-defaults / 30_luci-theme-openwrt
1 #!/bin/sh
2
3 if [ "$PKG_UPGRADE" != 1 ]; then
4 uci batch <<-EOF
5 set luci.themes.OpenWrt=/luci-static/openwrt.org
6 set luci.main.mediaurlbase=/luci-static/openwrt.org
7 commit luci
8 EOF
9 fi
10
11 exit 0