Files
nasmon/packaging/prerm.sh
T
a.gritsenkoandClaude Sonnet 5 72e2548149
build / build (push) Failing after 6m36s
Restore executable bit on build.sh and packaging maintainer scripts
core.filemode=false on this Windows checkout dropped the +x bit on the
initial commit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 10:24:54 +03:00

10 lines
375 B
Bash
Executable File

#!/bin/sh
set -e
# dpkg passes "remove" here; rpm passes a numeric $1 (0 = last uninstall) - cover both.
if { [ "$1" = "remove" ] || [ "$1" = "0" ]; } && [ -d /run/systemd/system ]; then
systemctl stop nasmon.service >/dev/null 2>&1 || true
systemctl disable nasmon.service >/dev/null 2>&1 || true
systemctl disable --now wsdd.service >/dev/null 2>&1 || true
fi
exit 0