osquery-1/tools/deployment/linux_postinstall.sh
Jesse Kornblum 910e46b28f Add Facebook Copyright message to Facebook owned, open-source osquery files (#5445)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5445

This diff adds a Facebook copyright header to files in the osquery open source repository which:
* Facebook owns
* Do not currently have a Facebook copyright header

Reviewed By: marekcirkos

Differential Revision: D14122845

fbshipit-source-id: 5a0fea10189ec4ec893f7a036911fd51de0e01ae
2019-02-18 13:51:04 -08:00

19 lines
431 B
Bash
Executable File

#!/bin/sh
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# 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