1
0
mirror of https://github.com/azlux/dpkg-deb synced 2025-01-18 08:03:30 +00:00

16 lines
364 B
Bash
Executable File

#!/usr/bin/env bash
case "$1" in
purge)
if [ -x "$(command -v deluser)" ]; then
deluser --quiet --system --remove-home git > /dev/null || true
echo "GIT user removed"
else
echo >&2 "not removing git system account because deluser command was not found"
fi
;;
*)
;;
esac
exit 0