- Add MANTISBT_ADMIN env variable to disable admin directory access.

This commit is contained in:
AlkorZ3 committed 2025-03-08 00:18:27 +01:00
1 parent e75651a893
commit 04c0b1f405
4 files changed
+17 -7

No files matched your search

+8 -2
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 '
#---------------------------------------------------------------------------------------------------