mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-10 08:12:42 +08:00
15 lines
371 B
Smarty
15 lines
371 B
Smarty
#!/bin/bash
|
|
|
|
# Delete the link to the binary
|
|
if type update-alternatives >/dev/null 2>&1; then
|
|
update-alternatives --remove '${executable}' '/usr/bin/${executable}'
|
|
else
|
|
rm -f '/usr/bin/${executable}'
|
|
fi
|
|
|
|
APPARMOR_PROFILE_DEST='/etc/apparmor.d/${executable}'
|
|
|
|
# Remove apparmor profile.
|
|
if [ -f "$APPARMOR_PROFILE_DEST" ]; then
|
|
rm -f "$APPARMOR_PROFILE_DEST"
|
|
fi |