~clint-fewbar/ubuntu/precise/gearmand/drop-unneeded-patches

« back to all changes in this revision

Viewing changes to debian/gearman-job-server.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2009-08-11 10:06:22 UTC
  • mto: (1.2.3 upstream) (6.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20090811100622-6ig4iknanc73olum
ImportĀ upstreamĀ versionĀ 0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
GROUP="gearman"
6
 
USER="gearman"
7
 
LOGDIR="/var/log/gearman-job-server"
8
 
 
9
 
# shamelessly copied from debian mysql-server package...
10
 
#
11
 
# - Remove the gearman user only after all his owned files are purged.
12
 
#   
13
 
if [ "$1" = "purge" ]; then
14
 
  # we remove the mysql user only after all his owned files are purged
15
 
  rm -rf $LOGDIR
16
 
  rm -rf /var/run/gearman
17
 
        rm -rf /var/lib/gearman
18
 
 
19
 
  # --remove-all-files takes ages, so delete manually
20
 
  deluser --system $USER || true
21
 
  delgroup --system --only-if-empty $GROUP || true
22
 
fi
23
 
 
24
 
#DEBHELPER#