Skip to content

Commit

Permalink
Avoid restarting nginx-agent service from pkg on FreeBSD during upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
defanator committed Jun 21, 2023
1 parent d50327f commit 92bf8f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/packages/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92bf8f1

Please sign in to comment.