42 lines
1.5 KiB
Bash
42 lines
1.5 KiB
Bash
#!/bin/sh
|
|
|
|
# /****************************************************************************
|
|
# * <Novell-copyright>
|
|
# * Copyright (c) 2001 Novell, Inc. All Rights Reserved.
|
|
# *
|
|
# * This program is free software; you can redistribute it and/or
|
|
# * modify it under the terms of version 2 of the GNU General Public License
|
|
# * as published by the Free Software Foundation.
|
|
# *
|
|
# * This program is distributed in the hope that it will be useful,
|
|
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# * GNU General Public License for more details.
|
|
# *
|
|
# * You should have received a copy of the GNU General Public License
|
|
# * along with this program; if not, contact Novell, Inc.
|
|
# * </Novell-copyright>
|
|
# ****************************************************************************/
|
|
|
|
"@LIBEXEC_INSTALL_DIR@/bongo/bongo-sa-update" update
|
|
status=$?
|
|
|
|
# sa-update uses 1 for "all selected channels are current". That is a
|
|
# successful timer run and must not put the oneshot unit into failed state.
|
|
if [ "$status" -eq 1 ]; then
|
|
exit 0
|
|
fi
|
|
if [ "$status" -ne 0 ]; then
|
|
exit "$status"
|
|
fi
|
|
|
|
# Rules changed and passed lint. Reload only an already active scanner;
|
|
# package installation and service enablement remain administrator choices.
|
|
for unit in spamassassin.service spamd.service; do
|
|
if systemctl --quiet is-active "$unit"; then
|
|
exec systemctl try-reload-or-restart "$unit"
|
|
fi
|
|
done
|
|
|
|
exit 0
|