File: postrm

package info (click to toggle)
gom 0.29.103-11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 572 kB
  • ctags: 319
  • sloc: ansic: 3,206; sh: 910; makefile: 80
file content (23 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

#DEBHELPER#

sysconfdir=/etc/gom

# Purging configuration gom
#
# Note: unfortunately, I can't use gomconfig --purge, as it's alread removed.
#
if [ "$1" = "purge" ] ;
    then if [ -e ${sysconfdir} ] ;
            then echo -n "About to remove entire dir ${sysconfdir}. Ok (Y/n)? "
                 read answer
		 if [ "${answer}" = "" ] || [ "${answer}" = "y" ] || [ "${answer}" = "Y" ] ;
	            then rm -r -f ${sysconfdir}
	            else echo "Ok, leaving ${sysconfdir} untouched."
                 fi
            else echo "No dir ${sysconfdir}, nothing to purge."
	 fi
fi

update-modules