File: haproxy.postinst

package info (click to toggle)
haproxy 1.5.8-3%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 8,248 kB
  • ctags: 6,924
  • sloc: ansic: 62,867; xml: 1,754; python: 925; makefile: 551; perl: 550; sh: 491
file content (16 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

adduser --system --disabled-password --disabled-login --home /var/lib/haproxy \
        --no-create-home --quiet --force-badname --group haproxy

#DEBHELPER#

if [ -n "$2" ] && dpkg --compare-versions "$2" gt "1.5~dev24-2~"; then
	# Reload already running instances. Since 1.5~dev24-2 we do not stop
	# haproxy in prerm during upgrades.
	invoke-rc.d haproxy reload || true
fi

exit 0