if ! id -u pwrchute > /dev/null 2>&1 ; then
%{_sbindir}/useradd -u 68 -g 68 -d /dev/null -s /bin/false -c "PowerChute Plus" pwrchute
fi
-%{_bindir}/update-db
%post
/sbin/chkconfig --add upsd
if [ "$1" = "0" ]; then
%{_sbindir}/userdel pwrchute
%{_sbindir}/groupdel pwrchute
- %{_bindir}/update-db
fi
%clean