This file is indexed.

preinst is in zoneminder 1.26.5-1ubuntu3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
31
32
#!/bin/sh

set -e

abort=false
if [ -L /usr/share/zoneminder/events ]; then
    l=$(readlink /usr/share/zoneminder/events)
    if [ "$l" != "/var/cache/zoneminder/events" ]; then
        abort=true
    fi
fi
if [ -L /usr/share/zoneminder/images ]; then
    l=$(readlink /usr/share/zoneminder/images )
    if [ "$l" != "/var/cache/zoneminder/images" ]; then
        abort=true
    fi
fi

if [ "$abort" = "true" ]; then
    cat >&2 << EOF 
Aborting installation of zoneminder due to non-default symlinks in
/usr/share/zoneminder for the images and/or events directory, which could
result in loss of data. Please move your data in each of these directories to
/var/cache/zoneminder before installing zoneminder from the package.
EOF
    exit 1

fi



exit 0