File: versioned.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-- 580 bytes parent folder | download | duplicates (11)
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/@version@ ]; then
	       db_version 2.0
	       db_fset @package@/abort-removal seen false
	       db_subst @package@/abort-removal version @version@
	       db_subst @package@/abort-removal package @package@
	       db_input critical @package@/abort-removal
	       db_go
	       db_get @package@/abort-removal

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

#DEBHELPER#