File: drbd-utils.postinst

package info (click to toggle)
drbd-utils 9.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,760 kB
  • sloc: ansic: 48,975; xml: 11,553; cpp: 9,842; sh: 4,575; makefile: 1,031; perl: 353; ruby: 43
file content (13 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

# Cleanup the old systemd unit state, if applicable
if dpkg --compare-versions "$2" lt-nl "8.9.5-1~"; then
	if deb-systemd-helper debian-installed drbd.service; then
		deb-systemd-helper purge drbd.service >/dev/null
		deb-systemd-helper unmask drbd.service >/dev/null
	fi
fi

#DEBHELPER#