From 5ea6d8da07b3fd90173635e896474f0e5d811422 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin <2048991+iredmail@users.noreply.github.com> Date: Mon, 13 Apr 2026 15:07:47 +0800 Subject: [PATCH] Install python module required by iRedAdmin: passlib. --- functions/packages.sh | 5 +++-- functions/packages_freebsd.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/packages.sh b/functions/packages.sh index 2abbccd9..c1005974 100644 --- a/functions/packages.sh +++ b/functions/packages.sh @@ -94,10 +94,11 @@ install_all() # uwsgi. # Required by mlmmjadmin, iredadmin. if [ X"${DISTRO}" == X'RHEL' ]; then - ALL_PKGS="${ALL_PKGS} uwsgi-logger-syslog uwsgi-plugin-python3" + ALL_PKGS="${ALL_PKGS} uwsgi-logger-syslog uwsgi-plugin-python3 python3-passlib" elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then - ALL_PKGS="${ALL_PKGS} uwsgi uwsgi-plugin-python3" + ALL_PKGS="${ALL_PKGS} uwsgi uwsgi-plugin-python3 python3-passlib" elif [ X"${DISTRO}" == X'OPENBSD' ]; then + ALL_PKGS="${ALL_PKGS} py3-passlib" PIP3_MODULES="${PIP3_MODULES} ${PKG_MISC_DIR}/uwsgi-${OB_UWSGI_VERSION}.tar.gz" fi diff --git a/functions/packages_freebsd.sh b/functions/packages_freebsd.sh index cd91d24f..4a7f3558 100644 --- a/functions/packages_freebsd.sh +++ b/functions/packages_freebsd.sh @@ -133,7 +133,7 @@ install_all() ALL_PKGS="${ALL_PKGS} ${PY_FLAVOR}-dnspython ${PY_FLAVOR}-multipart" # iRedAdmin dependencies. - ALL_PKGS="${ALL_PKGS} ${PY_FLAVOR}-Jinja2 ${PY_FLAVOR}-bcrypt ${PY_FLAVOR}-simplejson ${PY_FLAVOR}-requests ${PY_FLAVOR}-netifaces ${PY_FLAVOR}-more-itertools" + ALL_PKGS="${ALL_PKGS} ${PY_FLAVOR}-Jinja2 ${PY_FLAVOR}-bcrypt ${PY_FLAVOR}-simplejson ${PY_FLAVOR}-requests ${PY_FLAVOR}-netifaces ${PY_FLAVOR}-more-itertools ${PY_FLAVOR}-passlib" # Fail2ban. if [ X"${USE_FAIL2BAN}" == X'YES' ]; then