File: postremove.in

package info (click to toggle)
nut 2.8.4%2Breally-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,720 kB
  • sloc: ansic: 132,030; sh: 17,256; cpp: 12,566; makefile: 5,646; python: 1,114; perl: 856; xml: 47
file content (23 lines) | stat: -rwxr-xr-x 400 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
#!/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@"