# Post erase script

# if this is the last version of presto-server-rpm being removed (i.e. not on upgrade)
if [ "$1" -eq 0 ]
then
    # Delete the conf directory manually during uninstall.
    # rpm -e wont remove it, because this directory was manually updated in postinstall
    rm -rf /etc/presto
    # Delete the data directory manually during uninstall.
    # rpm -e wont remove it, because this directory may later contain files not
    # deployed by the rpm
    rm -rf /var/lib/presto
fi
