The public tree and its history contain only the listed paths. Earlier projection history remains preserved internally. Source-Sha: 913fde029b935671833254797f0f20f1eb9fabba Policy-Sha: 913fde029b935671833254797f0f20f1eb9fabba Tree-Digest: 180ae530c1058a2a5c89837bdce2d323ae83e669e38590ca72e75b8d92b7262f
13 lines
357 B
Shell
13 lines
357 B
Shell
#!/bin/sh
|
|
# Stop the agent before files go away. Upgrades leave it disabled-then-restarted
|
|
# by postinst; only a real removal disables it.
|
|
set -e
|
|
|
|
if [ -d /run/systemd/system ]; then
|
|
systemctl stop redflag-agent.service || true
|
|
if [ "$1" = remove ] || [ "$1" = purge ]; then
|
|
systemctl disable redflag-agent.service || true
|
|
fi
|
|
fi
|
|
|
|
exit 0
|