"Fossies" - the Fresh Open Source Software Archive

Member "rgdbm-2.1.42/debian/prerm.server" (26 Jun 2007, 554 Bytes) of package /linux/privat/old/rgdbm-2.1.42.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 
    3 set -e
    4 
    5 case "$1" in
    6   remove|remove-in-favour|deconfigure-in-favour)
    7 
    8     deluser --system gdbm
    9     delgroup --only-if-empty gdbm
   10   ;;
   11 
   12   purge)
   13     deluser --system --remove-home gdbm
   14     delgroup --only-if-empty gdbm
   15 
   16     if [ -x /usr/sbin/update-rc.d ]; then
   17       update-rc.d gdbmd remove >/dev/null
   18     else
   19       rm -f /etc/rc[0-6S].d/[SK][0-9][0-9]gdbmd
   20     fi
   21 
   22   ;;
   23 esac
   24 
   25 if [ "$1" = "purge"  -o "$1" = "remove" ]; then
   26   if [ -x /usr/sbin/invoke-rc.d ]; then
   27     invoke-rc.d gdbmd stop
   28   else
   29     sh /etc/init.d/gdbmd stop
   30   fi
   31 fi
   32