diff --git a/scripts/packages/postinstall.sh b/scripts/packages/postinstall.sh index 5b64a7cda..46919c7d3 100755 --- a/scripts/packages/postinstall.sh +++ b/scripts/packages/postinstall.sh @@ -274,6 +274,10 @@ upgrade_config_file() { } restart_agent_if_required() { + if [ "${ID}" = "freebsd" ]; then + # https://github.com/freebsd/pkg/pull/2128 + return + fi if service nginx-agent status >/dev/null 2>&1; then printf "PostInstall: Restarting nginx agent\n" service nginx-agent restart || true