File: postremove.in

package info (click to toggle)
nut 2.8.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,356 kB
  • sloc: ansic: 123,904; sh: 14,718; cpp: 12,558; makefile: 5,212; python: 1,114; perl: 855; xml: 47
file content (23 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# Postremove script for Network UPS Tools package

# Remove init script from /etc/init.d - created by scripts not packaging

rm -f /etc/init.d/nut
rm -f /etc/rc3.d/S90nut
rm -f /etc/rc3.d/K10nut

# Remove nut group and user

/usr/sbin/userdel "@RUN_AS_USER@"

/usr/sbin/groupdel "@RUN_AS_GROUP@"

# Remove /var/run/nut

rm -rf "@ALTPIDPATH@"

# Remove /var/state/ups

rm -rf "@STATEPATH@"