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 20, 2023
1 parent e60ee60 commit 6b86397
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 6b86397

Please sign in to comment.