osquery-1/tools/deployment/linux_postinstall.sh

18 lines
343 B
Bash
Executable File

#!/bin/sh
# Could be called by DPKG or RPM.
# Handle the cases we want to hook or silently claim success.
case "$1" in
configure|2)
: # Fall through to systemctl handle.
;;
*)
exit 0
;;
esac
# If we have a systemd, daemon-reload away now
if [ -x /bin/systemctl ] ; then
/bin/systemctl daemon-reload 2>/dev/null 2>&1
fi