- Add TIKI_ROOT_LINK_LIST variable support,

- .htaccess and robots.txt are now read from /var/www/tiki dir.
This commit is contained in:
2026-02-28 10:51:47 +01:00
parent 81c69e9e94
commit 91f7208b91
4 changed files with 26 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ LABEL maintainer=${IMG_MAINTAINER}
ARG HTTPD_VHOST_CONFIG_DIR=/etc/httpd/conf/sites.d/default_vhost.d
ARG TIKI_CORE_CONFIG_FILE=${HTTPD_VHOST_CONFIG_DIR}/70-tiki-core.conf
ARG TIKI_SHARE_DIR=/usr/share/tiki
ARG TIKI_WWW_DIR=/var/www/tiki
@@ -39,6 +40,17 @@ cp -f '${TIKI_CORE_CONFIG_FILE}.ref' '${TIKI_CORE
\n\
sed -i -e "s%TIKI_URL%${TIKI_URL}%g" '${TIKI_CORE_CONFIG_FILE}' \n\
\n\
IFS=":" \n\
read -r -a file <<< "${TIKI_ROOT_LINK_LIST}" \n\
\n\
i=0 \n\
while [[ ${i} -lt ${#file[@]} ]] \n\
do \n\
ln -s '${TIKI_WWW_DIR}'/${file[${i}]} '${TIKI_SHARE_DIR}' \n\
\n\
i=$(( ${i} + 1)) \n\
done \n\
\n\
sed -i -e "s%mailhub=mail%mailhub=${SMTP_SERVER}%" /etc/ssmtp/ssmtp.conf'
#---------------------------------------------------------------------------------------------------