KUNTUL | JINGKONTOT
JINGKONTOT


Server : Apache/2.4.41 (Ubuntu)
System : Linux journalup 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/lib/dpkg/info/python3.8-minimal.postinst
#! /bin/sh

set -e

if [ ! -f /etc/python3.8/sitecustomize.py ]; then
    cat <<-EOF
	# Empty sitecustomize.py to avoid a dangling symlink
EOF
fi

case "$1" in
    configure)
        # Create empty directories in /usr/local
        if [ ! -e /usr/local/lib/python3.8 ]; then
            mkdir -p /usr/local/lib/python3.8 2> /dev/null || true
            chmod 2775 /usr/local/lib/python3.8 2> /dev/null || true
            chown root:staff /usr/local/lib/python3.8 2> /dev/null || true
        fi
	localsite=/usr/local/lib/python3.8/dist-packages
        if [ ! -e $localsite ]; then
            mkdir -p $localsite 2> /dev/null || true
            chmod 2775 $localsite 2> /dev/null || true
            chown root:staff $localsite 2> /dev/null || true
        fi

	if which update-binfmts >/dev/null; then
	    update-binfmts --import python3.8
	fi

    ;;
esac

if [ "$1" = configure ]; then

    # only available before removal of the packaging package
    rm -f /etc/python3.8/sysconfig.cfg

    if ls -L /usr/lib/python3.8/sitecustomize.py >/dev/null 2>&1; then
	filt='cat'
    else
	filt='fgrep -v sitecustomize.py'
    fi
    files=$(dpkg -L libpython3.8-minimal:amd64 \
		| sed -n '/^\/usr\/lib\/python3.8\/.*\.py$/p' | $filt)
    if [ -n "$files" ]; then
	/usr/bin/python3.8 -E -S /usr/lib/python3.8/py_compile.py $files
	if grep -sq '^byte-compile[^#]*optimize' /etc/python/debian_config; then
	    /usr/bin/python3.8 -E -S -O /usr/lib/python3.8/py_compile.py $files
	fi
    else
	echo >&2 "python3.8-minimal: can't get files for byte-compilation"
    fi
    bc=no
    #if [ -z "$2" ] || dpkg --compare-versions "$2" lt 2.5-3 \
    #    || [ -f /var/lib/python/python3.8_installed ]; then
    #	bc=yes
    #fi
    if ! grep -sq '^supported-versions[^#]*python3.8' /usr/share/python/debian_defaults
    then
	# FIXME: byte compile anyway?
	bc=no
    fi
    if [ "$bc" = yes ]; then
	# new installation or installation of first version with hook support
	if [ "$DEBIAN_FRONTEND" != noninteractive ]; then
	    echo "Linking and byte-compiling packages for runtime python3.8..."
	fi
	version=$(dpkg -s python3.8-minimal | awk '/^Version:/ {print $2}')
	for hook in /usr/share/python3/runtime.d/*.rtinstall; do
	    [ -x $hook ] || continue
	    $hook rtinstall python3.8 "$2" "$version"
	done
	if [ -f /var/lib/python/python3.8_installed ]; then
	    rm -f /var/lib/python/python3.8_installed
	    rmdir --ignore-fail-on-non-empty /var/lib/python 2>/dev/null
	fi
    fi
fi



exit 0

KUNTUL | JINGKONTOT |