aboutsummaryrefslogtreecommitdiffstats
path: root/dns/noip/pkg-deinstall
blob: 93a3036c7d43cbf4d42ba8a82a0e6ae20af2c958 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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