1
0
mirror of https://github.com/azlux/dpkg-deb synced 2024-11-23 06:46:18 +00:00
dpkg-deb/gitea/DEBIAN/postrm

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