File: ipolish.preinst

package info (click to toggle)
ipolish 20050313-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,720 kB
  • ctags: 13
  • sloc: perl: 261; makefile: 94; awk: 43; sh: 32
file content (25 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

dir=/var/lib/ispell
if [ ! -e "$dir/polish.hash" ] ; then
	[ -d "$dir" ] || mkdir -m 0755 -p "$dir"
	touch "$dir/polish.hash"
fi




# remove /varlib/ispell created by 20040806-1
if [ "x$1" = "xupgrade" ]; then
   if [ "x$2" = "x20040806-1" ] || [ "x$2" = "x20040806-1.1" ]; then
	if [ -d /varlib/ispell ]; then
		rm -f /varlib/ispell/polish.hash || true
		rmdir --ignore-fail-on-non-empty /varlib/ispell || true
		rmdir --ignore-fail-on-non-empty /varlib || true
	fi
   fi
fi

#DEBHELPER#