| Server IP : 85.214.239.14 / Your IP : 216.73.216.189 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/proc/self/root/proc/self/root/var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh
# prerm script for uwsgi-plugin-python3
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove)
for flavor_dotless in python311; do
update-alternatives --quiet \
--remove \
uwsgi \
/usr/bin/uwsgi_${flavor_dotless}
update-alternatives --quiet \
--remove \
uwsgi-plugin-python3 \
/usr/lib/uwsgi/plugins/${flavor_dotless}_plugin.so
done
PLUGIN_ALTERNATIVES_COUNT="$(\
update-alternatives --list uwsgi-plugin-python3 2>/dev/null \
| wc -l \
)"
if [ "$PLUGIN_ALTERNATIVES_COUNT" -eq 0 ]; then
update-alternatives --quiet \
--remove \
uwsgi \
/usr/bin/uwsgi_python3
fi
;;
upgrade|deconfigure|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0