post_install() {
	if [ -e /etc/samba/private/smbpasswd ]; then
		if [ !-e /etc/samba/smbpasswd ]; then
			ln -s private/smbpasswd /etc/samba/smbpasswd
		fi
	fi
        echo -n "updating desktop database..."
        if update-desktop-database > /dev/null 2>&1 ; then
		echo " done."
        else
                echo " failed."
        fi
}

post_upgrade() {
	post_install
}
