From 82e2e48e3913b27fe8800ddeb4727c892704066c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Thu, 21 May 2026 12:43:39 +0200 Subject: [PATCH] feat: add general occ subcommand to owncloud entrypoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allows running any occ command with full ownCloud initialization (DB, config, etc.) but without starting Apache: /usr/bin/owncloud occ [args...] Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com> --- v24.04/overlay/usr/bin/owncloud | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/v24.04/overlay/usr/bin/owncloud b/v24.04/overlay/usr/bin/owncloud index e024703..f12eba5 100755 --- a/v24.04/overlay/usr/bin/owncloud +++ b/v24.04/overlay/usr/bin/owncloud @@ -53,6 +53,15 @@ installed) exit 0 fi ;; +occ) + for FILE in $(find /etc/owncloud.d -iname "*.sh" | sort); do + # shellcheck disable=SC1090,SC2086 + source ${FILE} + done + + shift + exec occ "$@" + ;; *) for FILE in $(find /etc/owncloud.d -iname "*.sh" | sort); do # shellcheck disable=SC1090,SC2086