mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
18 lines
360 B
Bash
Executable File
18 lines
360 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 ] && pidof systemd ; then
|
|
/bin/systemctl daemon-reload 2>/dev/null 2>&1
|
|
fi
|