Skip to content

Commit

Permalink
don't stop ubic-ping if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Matyukhin committed Jun 27, 2011
1 parent b8edb5e commit 05968f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05968f3

Please sign in to comment.