nut/scripts/Solaris/postremove.in

20 lines
354 B
Text
Raw Normal View History

2022-06-29 10:37:36 +00:00
#!/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 "@PIDPATH@/nut"