mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-21 03:06:08 +02:00
Make redis-session.ini writable by non-root.
If "REDIS_HOST=redis" is used in combination with a custom uid, the container attempts to write to redis-session.ini which fails due to lack of permission. Signed-off-by: Roland Vet <vet.roland@gmail.com>
This commit is contained in:
parent
64f040b44d
commit
1a22f36b72
2 changed files with 7 additions and 2 deletions
|
@ -7,7 +7,9 @@ RUN set -ex; \
|
|||
rsync \
|
||||
; \
|
||||
\
|
||||
rm /var/spool/cron/crontabs/root
|
||||
rm /var/spool/cron/crontabs/root; \
|
||||
touch /usr/local/etc/php/conf.d/redis-session.ini; \
|
||||
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;
|
||||
|
||||
# install the PHP extensions we need
|
||||
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
|
||||
|
|
|
@ -10,7 +10,10 @@ RUN set -ex; \
|
|||
busybox-static \
|
||||
libldap-common \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
\
|
||||
touch /usr/local/etc/php/conf.d/redis-session.ini; \
|
||||
chmod o+rw /usr/local/etc/php/conf.d/redis-session.ini;
|
||||
|
||||
# install the PHP extensions we need
|
||||
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
|
||||
|
|
Loading…
Add table
Reference in a new issue