File: buildbot-worker.preinst

package info (click to toggle)
buildbot 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 21,080 kB
  • sloc: python: 174,183; sh: 1,204; makefile: 332; javascript: 119; xml: 16
file content (20 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
# ex: et sw=4 ts=4 sts=4

set -e

if [ "$1" = install ] || [ "$1" = upgrade ]; then
    case "$2" in
    0.*)
        # Automatic upgrade from 0.8.x is not possible.
        if [ -f /etc/init.d/buildslave ]; then
            # remove and unregister the old init script
            rm -f /etc/init.d/buildslave
            update-rc.d buildslave remove >/dev/null || true
        fi
    esac
fi

#DEBHELPER#

exit 0