File: postinst

package info (click to toggle)
xen-tools 4.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,476 kB
  • sloc: perl: 4,942; sh: 1,690; makefile: 268
file content (30 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (10)
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
26
27
28
29
30
#!/bin/sh

set -e

#
# Skip, if we are not in "configure" state
#
if [ "$1" != "configure" ]; then
        echo "I: Skipping configuration"
        exit 0
fi

#
#  Handle obsolete directories.
#
if [ -d "/etc/xen-tools/xen-create-image.d" ]; then
	rmdir "/etc/xen-tools/xen-create-image.d" 2>/dev/null || 
	         echo "The directory /etc/xen-tools/xen-create-image.d is no longer used. You can safely remove it."
fi

#
#  1.x -> 2.x
#
if [ -d "/etc/xen-tools/hook.d" ]; then
	rmdir "/etc/xen-tools/hook.d" 2>/dev/null || 
	         echo "The directory /etc/xen-tools/hook.d is no longer used. You can safely remove it."
fi

#DEBHELPER#
exit 0