nut-debian/scripts/Solaris/postremove.in
2022-07-10 09:23:45 +02:00

20 lines
354 B
Bash
Executable File

#!/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"