mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-26 19:24:09 +00:00
- scrapy: which provides only the library and scrapy-ctl command - scrapy-service: which provides the service, upstart script, system user, etc This allows a clean install of just the library for those which are not interested in the Scrapy service. --HG-- rename : debian/scrapy.dirs => debian/scrapy-service.dirs rename : debian/scrapy.install => debian/scrapy-service.install rename : debian/scrapy.postinst => debian/scrapy-service.postinst rename : debian/scrapy.postrm => debian/scrapy-service.postrm rename : debian/scrapy.upstart => debian/scrapy-service.upstart rename : debian/conf/service_conf.py => debian/service_conf.py
19 lines
297 B
Bash
19 lines
297 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
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|
|
|
|
|