1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 01:04:05 +00:00
scrapy/debian/scrapy.postrm

21 lines
401 B
Bash

#!/bin/sh
set -e
if [ purge = "$1" ]; then
if [ -x "$(command -v deluser)" ]; then
deluser --quiet --system scrapy > /dev/null || true
else
echo >&2 "not removing scrapy system account because deluser command was not found"
fi
rm -rf /var/run/scrapy
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0