Skip to content

Commit

Permalink
nextcloud again
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Sep 2, 2024
1 parent 3e23a4c commit f4eb57a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
14 changes: 0 additions & 14 deletions nextcloud/config/nextcloud/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

set -eu

# FIXME: disable apache's access logs
# https://github.com/nextcloud/docker/issues/1667
#
# Apache may not run under `www-data` in non-root containers,
# which leads to permission errors in the usual entrypoint hooks
# that run as the $DOCKER_UID_USER.
#
# Ugly solution for now is to store such scripts in a "deferred"
# directory, and just run them as root here.
#
# (╯°□°)╯ ┻━┻

bash /docker-entrypoint-hooks.d/deferred/disable-access-logs.sh

# FIXME: cron jobs are hardcoded for `www-data` user
# https://github.com/nextcloud/docker/issues/1740
#
Expand Down

This file was deleted.

8 changes: 5 additions & 3 deletions nextcloud/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,15 @@ services:
- default
- proxy
volumes:
- ./config/nextcloud/docker-entrypoint-hooks.d/deferred/disable-access-logs.sh:/docker-entrypoint-hooks.d/deferred/disable-access-logs.sh:ro
- ./config/nextcloud/cron.sh:/cron.sh:ro
- ./config/nextcloud/push.sh:/push.sh:ro
# NOTE: Expose `crontabs` to allow for adding or removing cron jobs
- ./data/nextcloud/crontabs:/crontabs:rw
- ./data/nextcloud/data:/data:rw
- ./data/nextcloud/var/www/html:/var/www/html:rw
# NOTE: Expose `crontabs` to allow for adding or removing cron jobs
- ./data/nextcloud/crontabs:/crontabs:rw
# FIXME: See https://github.com/nextcloud/docker/issues/1667
- /dev/null:/var/log/apache2/access.log:rw
- /dev/null:/var/log/apache2/other_vhosts_access.log:rw
# FIXME: See https://github.com/nextcloud/docker/issues/763#issuecomment-1007447212
- ./data/nextcloud/usr/local/etc/php/conf.d/redis-session.ini:/usr/local/etc/php/conf.d/redis-session.ini:rw
# FIXME: See https://github.com/nextcloud/docker/issues/1494#issuecomment-1213540687
Expand Down

0 comments on commit f4eb57a

Please sign in to comment.