1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-28 23:37:47 +00:00
scrapy/debian/scrapyd.postrm

19 lines
298 B
Plaintext
Raw Normal View History

#!/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/scrapyd
fi
#DEBHELPER#
exit 0