BastionGuard/data/init/common/bastionguard-sanesecurity-update
specialworld83 588e87590d add multi-init support and Gentoo/Alpine packaging
* add support for systemd, OpenRC, SysVinit, and Dinit
* add automatic init-system detection through CMake
* make libsystemd optional for non-systemd builds
* add native service definitions for all supported init systems
* add Gentoo ebuild and Alpine APKBUILD packaging support
* publish the official BastionGuard source repository
* update the README with supported distributions, init systems, repository information, and build documentation
2026-07-21 14:15:32 +02:00

14 lines
351 B
Bash
Executable file

#!/bin/sh
set -u
SERVICECTL=/usr/libexec/bastionguard/bastionguard-service
/usr/bin/BastionGuard --update-sanesecurity
status=$?
if [ "$status" -eq 0 ]; then
"$SERVICECTL" --system try-reload-or-restart clamav-daemon.service 2>/dev/null || \
"$SERVICECTL" --system try-reload-or-restart clamd.service 2>/dev/null || true
fi
exit "$status"