From 1fd6c968e9c9df30c982e864d7b4a5d9d5328361 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Wed, 18 Apr 2012 16:54:37 +0100 Subject: postrm: Check first existence of update-inetd first --- debian/nyancat-server.postrm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/nyancat-server.postrm b/debian/nyancat-server.postrm index 3f8b5d4..9b2af53 100644 --- a/debian/nyancat-server.postrm +++ b/debian/nyancat-server.postrm @@ -9,7 +9,9 @@ case "$1" in fi ;; remove) - update-inetd --disable nyancat + if [ -x /usr/sbin/update-inetd ]; then + update-inetd --disable nyancat + fi ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; -- cgit v1.2.3