From 05968f3467d456bf97c38f673d078d4d12595728 Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Tue, 28 Jun 2011 03:21:49 +0400 Subject: [PATCH] don't stop ubic-ping if it doesn't exist --- debian/postinst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/postinst b/debian/postinst index 98fbe5d..c0656ac 100644 --- a/debian/postinst +++ b/debian/postinst @@ -5,9 +5,10 @@ if [ "$1" = "configure" ]; then if [ -n "$2" ]; then if dpkg --compare-versions "$2" lt 1.27; then ubic-admin setup --batch-mode --no-crontab --no-install-services - ubic stop ubic-ping - rm /etc/ubic/service/ubic-ping - rm /etc/init.d/ubic-ping + if [ -e '/etc/ubic/service/ubic-ping' ]; then + ubic stop ubic-ping + fi + rm -f /etc/ubic/service/ubic-ping /etc/init.d/ubic-ping update-rc.d ubic-ping remove update-rc.d ubic-watchdog defaults ubic start -f ubic