File: ganeti-haskell-2.16.prerm

package info (click to toggle)
ganeti 2.16.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 16,660 kB
  • sloc: python: 105,115; haskell: 43,768; sh: 3,896; makefile: 2,763
file content (24 lines) | stat: -rw-r--r-- 630 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
24
#!/bin/sh

set -e

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

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

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

#DEBHELPER#