post_install()
{
    ls -l /etc/resolv.conf | grep -q /run/systemd/resolve/resolv.conf
    if [ $? = 1 ]
    then
        ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
    fi
}

post_upgrade()
{
    ls -l /etc/resolv.conf | grep -q /run/systemd/resolve/resolv.conf
    if [ $? = 1 ]
    then
        ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
    fi
}
