#!/bin/bash

if [ "$1" = "upgrade" ] || [ "$1" -eq 1 ]; then
  # This is an upgrade, let the package upgrading do the work
  exit 0
fi

if [ -x "/bin/systemctl" ]; then
  /bin/systemctl daemon-reload
  /bin/systemctl restart filebeat
fi
