freebsd-ports/net/vserver/files/pkg-deinstall.in

26 lines
471 B
Text
Raw Normal View History

#! /bin/sh
if [ "$2" != "POST-DEINSTALL" ]; then
exit 0
fi
PREFIX=${PKG_PREFIX:-%%PREFIX%%}
VCHATUSER=%%VCHATUSER%%
VCHATGROUP=%%VCHATGROUP%%
if pw usershow "${VCHATUSER}" 2>/dev/null 1>&2; then
echo "To delete ${VCHATUSER} user permanently, use 'pw userdel \"${VCHATUSER}\"'"
fi
if [ -d "${PREFIX}/etc/vchat" ]; then
echo "If you do not intend to use this package any longer, please delete"
echo "the directory \"${PREFIX}/etc/vchat\" manually."
fi
exit 0