restund: do not disable on upgrade
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 21 Apr 2019 13:11:42 +0000 (15:11 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 21 Apr 2019 13:12:39 +0000 (15:12 +0200)
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>
net/restund/Makefile

index fa53d2e2fc70105fd7f7c9208248cb8c0bf20d34..64cf4203da0c269954c007cc2c7b5b30faf603ed 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=restund
 PKG_VERSION:=0.4.12
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.creytiv.com/pub
@@ -95,11 +95,6 @@ define Package/restund/postinst
 #!/bin/sh
 if [ -z "$${IPKG_INSTROOT}" ]; then
   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
 exit 0
 endef