certbot-angie/usr/local/sbin/certbot-pycache

21 lines
410 B
Plaintext
Raw Permalink Normal View History

2024-06-12 03:22:03 +03:00
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# (c) 2024, Konstantin Demin
set -ef
[ -n "${VIRTUAL_ENV}" ] || exec certbot-venv "$0" "$@"
find "${VIRTUAL_ENV}/" -name __pycache__ -exec rm -rf {} +
find "${VIRTUAL_ENV}/" -name '*.pyc' -delete
j=$(nproc) || j=0
case "$j" in
[1-4] ) ;;
* ) j=1 ;;
esac
j=$(( j*2 + 1 ))
unset SOURCE_DATE_EPOCH
"${PYTHON3:-python3}" -m compileall -q -j $j "${VIRTUAL_ENV}"