#!/bin/bash# Delete the link to the binaryif type update-alternatives >/dev/null 2>&1; thenupdate-alternatives --remove '${executable}' '/usr/bin/${executable}'elserm -f '/usr/bin/${executable}'fiAPPARMOR_PROFILE_DEST='/etc/apparmor.d/${executable}'# Remove apparmor profile.if [ -f "$APPARMOR_PROFILE_DEST" ]; thenrm -f "$APPARMOR_PROFILE_DEST"fi