feat: add general occ subcommand to owncloud entrypoint#462
Merged
Conversation
Allows running any occ command with full ownCloud initialization (DB, config, etc.) but without starting Apache: /usr/bin/owncloud occ <occ-command> [args...] Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
5c51f7c to
82e2e48
Compare
jvillafanez
approved these changes
May 21, 2026
DeepDiver1975
added a commit
to owncloud-docker/server
that referenced
this pull request
May 21, 2026
The occ) case is now part of owncloud/base (owncloud-docker/base#462), so the overlay override in this repo is no longer needed. Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
occsubcommand to/usr/bin/owncloudin thev24.04image/etc/owncloud.d/*.sh) thenexecsoccwith forwarded arguments — without starting Apacheowncloud/base:24.04Usage
docker-compose.yml:
docker run:
Examples:
List all available occ commands:
Start the Windows Network Drive SMB listener (long-running):
Test Plan
owncloud/base:24.04with this changecommand: ["/usr/bin/owncloud", "occ", "list"]— verify occ command list prints, no Apache started, container exits 0server,install,migrate,installedsubcommands still work normallyRelated
Companion PR in
owncloud-docker/server: owncloud-docker/server#618 (will be updated to drop the overlay once this merges)🤖 Generated with Claude Code