From: Andrew Ruthven Date: Sat, 10 Apr 2021 02:54:16 +0000 (+1200) Subject: Allow the init script to fail on install X-Git-Tag: debian-sid-1.0.1-5~3 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23f3567f49ab9385458f0079f4c5b56a9cdf4e8d;p=mythtv-status.git Allow the init script to fail on install --- diff --git a/debian/changelog b/debian/changelog index 5f617d2..7b3d6c4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,10 @@ -mythtv-status (1.0.1-5) UNRELEASED; urgency=medium +mythtv-status (1.0.1-5) unstable; urgency=medium - * Upstream is now generating GPG signatures of release tarballs. + * Upstream is now generating GPG signatures of release tarballs. + * Allow the init script/service to fail on install/upgrade as there + may not be a MythTV backend reachable at installation time. - -- Andrew Ruthven Sat, 10 Apr 2021 01:53:14 +1200 + -- Andrew Ruthven Sat, 10 Apr 2021 15:00:41 +1200 mythtv-status (1.0.1-4) unstable; urgency=medium diff --git a/debian/postinst b/debian/postinst index 28a8c3b..96cc923 100644 --- a/debian/postinst +++ b/debian/postinst @@ -90,5 +90,3 @@ esac #DEBHELPER# exit 0 - - diff --git a/debian/rules b/debian/rules index 579bb0f..a374e0e 100755 --- a/debian/rules +++ b/debian/rules @@ -39,7 +39,9 @@ binary-indep: install dh_install dh_installdebconf # Make sure we start after mythtv-backend - dh_installinit -- defaults 51 +# Set --error-handler so that a failing init script (for example, no MythTV +# backend reachable) won't cause the installation to abort. + DH_OPTIONS="--error-handler=true" dh_installinit -- defaults 51 dh_installcron dh_installman debian/mythtv-status.1 man/* dh_compress