File: buildbot-worker.preinst

package info (click to toggle)
buildbot 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,452 kB
  • sloc: python: 123,237; sh: 1,005; makefile: 303
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