mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
4742a297e4
No-IP.com's dynamic DNS update client PR: 36543 Submitted by: Eyal Soha <esoha@attbi.com>
22 lines
509 B
Bash
22 lines
509 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" != "POST-DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
PW=/usr/sbin/pw
|
|
ECHO=echo
|
|
USER=noip
|
|
GROUP=${USER}
|
|
|
|
if [ -f ${PKG_PREFIX}/etc/no-ip.conf ]; then
|
|
${ECHO} "To delete noip configuration permanently: rm ${PKG_PREFIX}/etc/no-ip.conf"
|
|
fi
|
|
if ${PW} usershow "${USER}" 2>/dev/null 1>&2; then
|
|
${ECHO} "To delete noip user permanently: ${PW} userdel ${USER}"
|
|
fi
|
|
if ${PW} groupshow "${GROUP}" 2>/dev/null 1>&2; then
|
|
${ECHO} "To delete noip group permanently: ${PW} groupdel ${GROUP}"
|
|
fi
|
|
exit 0
|