restund: do not disable on upgrade
It is not a nice user experience when a package changes configuration files during an upgrade. Remove this from the postinstall routine. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
8fefafee3c
commit
6979664769
1 changed files with 1 additions and 6 deletions
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=restund
|
PKG_NAME:=restund
|
||||||
PKG_VERSION:=0.4.12
|
PKG_VERSION:=0.4.12
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://www.creytiv.com/pub
|
PKG_SOURCE_URL:=http://www.creytiv.com/pub
|
||||||
|
@ -95,11 +95,6 @@ define Package/restund/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||||
chown $(PKG_NAME):$(PKG_NAME) /etc/restund.conf
|
chown $(PKG_NAME):$(PKG_NAME) /etc/restund.conf
|
||||||
|
|
||||||
# Prevent $(PKG_NAME) from auto-starting after an upgrade. The modules may
|
|
||||||
# not be upgraded yet and the user configuration may need a revision.
|
|
||||||
sed -i '/^ENABLE_RESTUND="yes"/s/^/#/' \
|
|
||||||
/etc/default/$(PKG_NAME)
|
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in a new issue