#! /bin/sh

set -e

if [ "$1" = "upgrade" -a -f /etc/init.d/staroffice ]; then
  if [ -x /etc/init.d/staroffice ]; then
    /etc/init.d/staroffice stop
  fi
fi
