File: ganeti-haskell-3.0.prerm

package info (click to toggle)
ganeti 3.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 15,304 kB
  • sloc: python: 105,935; haskell: 43,928; sh: 3,940; makefile: 2,755
file content (24 lines) | stat: -rw-r--r-- 622 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
#!/bin/sh

set -e

if [ "$1" = "remove" ]; then
	. /usr/share/debconf/confmodule

	if [ /usr/lib/ganeti/default -ef /usr/lib/ganeti/3.0 ]; then
	       db_version 2.0
	       db_fset ganeti-haskell-3.0/abort-removal seen false
	       db_subst ganeti-haskell-3.0/abort-removal version 3.0
	       db_subst ganeti-haskell-3.0/abort-removal package ganeti-haskell-3.0
	       db_input critical ganeti-haskell-3.0/abort-removal
	       db_go
	       db_get ganeti-haskell-3.0/abort-removal

	       if [ "$RET" = "true" ]; then
		       echo "Aborting removal on user request"
		       exit 1;
	       fi
	fi
fi

#DEBHELPER#