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

index af2e4c8490b46549c1569c8bc8ec477f53e57203..68ce37681ff88c080d9335dd0b3e8dc6024bb096 100644 (file)
@@ -146,11 +146,6 @@ if [ -z "$${IPKG_INSTROOT}" ]; then
     /etc/baresip/accounts \
     /etc/baresip/config \
     /etc/baresip/contacts
-
-  # 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_BARESIP="yes"/s/^/#/' \
-    /etc/default/$(PKG_NAME)
 fi
 exit 0
 endef