#!/bin/sh if [ "$2" != "POST-DEINSTALL" ]; then exit 0 fi POLIPOUSER=%%USER%% POLIPOGROUP=%%GROUP%% PCONFIGDIR=%%PCONFIGDIR%% PPIDDIR=%%PPIDDIR%% POLIPOCACHE=%%PCACHEDIR%% POLIPOLOG=%%PLOGFILE%% POLIPOPID=%%PPIDFILE%% POLIPODATA=%%DATADIR%% if pw usershow "${POLIPOUSER}" 2>/dev/null 1>&2; then echo "---> To delete ${POLIPOUSER} user permanently, use 'pw userdel \"${POLIPOUSER}\"'" fi if [ -d "$PPIDDIR" ]; then rm -r "$PPIDDIR" || exit 1 fi if fgrep "${POLIPOLOG}" "/etc/newsyslog.conf" 2>/dev/null 1>&2; then echo "---> You should remove from /etc/newsyslog.conf the \"${POLIPOLOG}\" entry manually." fi exit 0