![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /var/lib/dpkg/info/ |
#! /bin/sh set -e if [ "$1" = "purge" ]; then pc=$(dpkg-query -f '${db:Status-Abbrev} ${binary:Package}\n' -W libpython3.10-minimal \ | grep -v '^.n' | wc -l) if [ "$pc" -lt 1 ]; then find /usr/lib/python3.10 -depth -type d -name __pycache__ \ | xargs -r rm -rf rm -f /etc/python3.10/sitecustomize.py rm -rf /etc/python3.10/__pycache__ if [ -d /etc/python3.10 ]; then rmdir --ignore-fail-on-non-empty /etc/python3.10 fi fi fi exit 0