File: ganeti-haskell-2.15.prerm

package info (click to toggle)
ganeti 2.15.2-7%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,244 kB
  • sloc: python: 104,260; haskell: 42,344; sh: 3,722; makefile: 2,704
file content (24 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (4)
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/2.15 ]; then
	       db_version 2.0
	       db_fset ganeti-haskell-2.15/abort-removal seen false
	       db_subst ganeti-haskell-2.15/abort-removal version 2.15
	       db_subst ganeti-haskell-2.15/abort-removal package ganeti-haskell-2.15
	       db_input critical ganeti-haskell-2.15/abort-removal
	       db_go
	       db_get ganeti-haskell-2.15/abort-removal

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

#DEBHELPER#