Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 1m12s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 1m21s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 5m24s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 6m8s
Build and Release / release (push) Has been skipped
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
35 lines
693 B
Bash
Executable File
35 lines
693 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
# Remove user and group
|
|
if getent passwd xxxig >/dev/null; then
|
|
deluser --quiet xxxig || true
|
|
fi
|
|
|
|
if getent group xxxig >/dev/null; then
|
|
delgroup --quiet xxxig || true
|
|
fi
|
|
|
|
# Remove data directories (only on purge)
|
|
rm -rf /var/log/xxxig
|
|
rm -rf /etc/xxxig
|
|
;;
|
|
|
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
|
# Do nothing
|
|
;;
|
|
|
|
*)
|
|
echo "postrm called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# Reload systemd
|
|
if [ -d /run/systemd/system ]; then
|
|
systemctl daemon-reload
|
|
fi
|
|
|
|
exit 0 |