#!/bin/bash test -x /usr/bin/sa-update || exit 0 /usr/bin/sa-update code1=$? if [[ $code1 > 1 ]]; then echo "problem with sa-update" fi if [[ $code1 = 0 ]]; then test -x /usr/sbin/amavisd-new || exit 0 /etc/init.d/amavis restart >/dev/null fi