to-latest

This commit is contained in:
2023-07-27 15:58:00 +08:00
parent 33a672a5ea
commit 77279777b0
7 changed files with 39 additions and 29 deletions

View File

@@ -1,10 +1,12 @@
#!/bin/bash
PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
echo "清理卸载残留"
if [ "$PACKAGE_NAME" = "cn.flamescion.bookworm-compatibility-mode" ];then
unlink /usr/bin/bookworm-run
rm -rf /opt/apps/cn.flamescion.bookworm-compatibility-mode/
fi
echo "清理卸载残留"
rm -rf /opt/apps/$PACKAGE_NAME
else
echo "非卸载,跳过清理"
fi