- Add MANTISBT_ADMIN env variable to disable admin directory access.

This commit is contained in:
2025-03-08 00:18:27 +01:00
parent e75651a893
commit 04c0b1f405
4 changed files with 17 additions and 7 deletions

View File

@@ -22,9 +22,15 @@ ARG MANTISBT_VERSION=2.27.1
#---------------------------------------------------------------------------------------------------
ARG MANTISBT='#!/bin/bash \n\
\n\
chown -R apache:apache ${APACHE_DOC_ROOT} \n\
chown -R apache:apache ${APACHE_DOC_ROOT} \n\
chmod -R u-x,g-x,o-rwx,u+X,g+X ${APACHE_DOC_ROOT} \n\
\n\
sed -i -e "s%mailhub=mail%mailhub=${SMTP_SERVER}%" /etc/ssmtp/ssmtp.conf'
if [[ "${MANTISBT_ADMIN}" == "DISABLED" ]] \n\
then \n\
chown -R root:root ${APACHE_DOC_ROOT}/mantisbt/admin \n\
fi \n\
\n\
sed -i -e "s%mailhub=mail%mailhub=${SMTP_SERVER}%" /etc/ssmtp/ssmtp.conf '
#---------------------------------------------------------------------------------------------------