File: yrmcds.postrm

package info (click to toggle)
yrmcds 1.1.8-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,000 kB
  • sloc: cpp: 11,157; sh: 148; makefile: 117
file content (24 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# postrm script for yrmcds
#
# see: dh_installdeb(1)

set -e

#DEBHELPER#

if [ "$1" = "purge" ]; then
    rm -f /var/log/yrmcds.log
	rm -f /etc/systemd/system/yrmcds.service
    rm -f /etc/systemd/system/multi-user.target.wants/yrmcds.service

	rm -f /var/lib/systemd/deb-systemd-helper-enabled/yrmcds.service.dsh-also
    rm -f /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/yrmcds.service
	rm -f /var/lib/systemd/deb-systemd-helper-masked/yrmcds.service
    rm -f /etc/init/yrmcds.override

    deluser --quiet --system yrmcds || true
    delgroup --quiet --system --only-if-empty yrmcds || true
fi

exit 0