diff options
Diffstat (limited to 'dns/noip/pkg-deinstall')
-rw-r--r-- | dns/noip/pkg-deinstall | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dns/noip/pkg-deinstall b/dns/noip/pkg-deinstall new file mode 100644 index 00000000000..93a3036c7d4 --- /dev/null +++ b/dns/noip/pkg-deinstall @@ -0,0 +1,21 @@ +#!/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 |