Skip to content

Commit 5a79819

Browse files
committed
Provide enigma working dir (if enabled)
1 parent 70342df commit 5a79819

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

templates/Dockerfile-alpine.templ

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ RUN set -ex; \
104104
rm -rf /usr/src/roundcubemail/installer; \
105105
chown -R www-data:www-data /usr/src/roundcubemail/logs; \
106106
# Create the config dir
107-
mkdir -p /var/roundcube/config
107+
mkdir -p /var/roundcube/config /var/roundcube/enigma
108108

109109
ENTRYPOINT ["/docker-entrypoint.sh"]
110110
CMD ["%%CMD%%"]

templates/Dockerfile-debian.templ

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ RUN set -ex; \
110110
rm -rf /usr/src/roundcubemail/installer; \
111111
chown -R www-data:www-data /usr/src/roundcubemail/logs; \
112112
# Create the config dir
113-
mkdir -p /var/roundcube/config
113+
mkdir -p /var/roundcube/config /var/roundcube/enigma
114114
115115
ENTRYPOINT ["/docker-entrypoint.sh"]
116116
CMD ["%%CMD%%"]

templates/docker-entrypoint.sh

+4
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then
150150
echo "\$config['spellcheck_uri'] = '${ROUNDCUBEMAIL_SPELLCHECK_URI}';" >> config/config.docker.inc.php
151151
fi
152152

153+
if [[ "$ROUNDCUBEMAIL_PLUGINS" = *enigma* ]]; then
154+
echo "$config['enigma_pgp_homedir'] = '/var/roundcube/enigma';" >> config/config.docker.inc.php
155+
fi
156+
153157
# include custom config files
154158
for fn in `ls /var/roundcube/config/*.php 2>/dev/null || true`; do
155159
echo "include('$fn');" >> config/config.docker.inc.php

0 commit comments

Comments
 (0)