From 5fd071aadbcaa3b136a37fa2cbcb9799b0153e2a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 3 Jun 2019 16:49:10 +0200 Subject: themes: don't reset theme on package upgrades Fixes: #2743 Signed-off-by: Jo-Philipp Wich --- .../root/etc/uci-defaults/30_luci-theme-rosy | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'themes/luci-theme-rosy/root') 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 2657a2977..ab0299a9c 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,7 +1,11 @@ #!/bin/sh -uci batch <<-EOF - set luci.themes.Rosy=/luci-static/rosy - set luci.main.mediaurlbase=/luci-static/rosy - commit luci -EOF + +if [ "$PKG_UPGRADE" != 1 ]; then + uci batch <<-EOF + set luci.themes.Rosy=/luci-static/rosy + set luci.main.mediaurlbase=/luci-static/rosy + commit luci + EOF +fi + exit 0 -- cgit v1.2.3