Skip to content

Commit a2004ad

Browse files
committed
chore: update postremove
1 parent 907fd2c commit a2004ad

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

scripts/packages/postremove.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
# shellcheck source=/dev/null
55
. /etc/os-release
66

7-
stop_agent_freebsd() {
8-
echo "Stopping nginx-agent service"
9-
service nginx-agent onestop >/dev/null 2>&1 || true
10-
}
11-
12-
disable_agent_freebsd() {
13-
echo "Disabling nginx-agent service"
14-
sysrc -x nginx_agent_enable >/dev/null 2>&1 || true
15-
}
16-
177
stop_agent_systemd() {
188
echo "Stopping nginx-agent service"
199
systemctl stop nginx-agent >/dev/null 2>&1 || true
@@ -35,11 +25,6 @@ cleanup() {
3525
}
3626

3727
case "$ID" in
38-
freebsd)
39-
stop_agent_freebsd
40-
disable_agent_freebsd
41-
cleanup
42-
;;
4328
debian|ubuntu)
4429
if [ "$1" = "remove" ]; then
4530
stop_agent_systemd

scripts/packages/preinstall.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ AGENT_CONFIG_FILE=${AGENT_CONFIG_FILE:-"/etc/nginx-agent/nginx-agent.conf"}
2626
#
2727
# Functions
2828
#
29-
3029
err_exit() {
3130
printf "\n%b" "$1"
3231
printf " exiting.\n"

0 commit comments

Comments
 (0)