mirror of
https://github.com/nextcloud/docker.git
synced 2025-05-03 15:30:55 +02:00
Add pre-initialization hook
Allow execution of scripts even before the need to install or update Nextcloud is determined. Useful when needing to have additional update condition checks. Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>
This commit is contained in:
parent
86ab9d769c
commit
5bbbde3734
22 changed files with 45 additions and 12 deletions
|
@ -140,7 +140,8 @@ RUN { \
|
|||
} > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; \
|
||||
\
|
||||
mkdir /var/www/data; \
|
||||
mkdir -p /docker-entrypoint-hooks.d/pre-installation \
|
||||
mkdir -p /docker-entrypoint-hooks.d/pre-initialization \
|
||||
/docker-entrypoint-hooks.d/pre-installation \
|
||||
/docker-entrypoint-hooks.d/post-installation \
|
||||
/docker-entrypoint-hooks.d/pre-upgrade \
|
||||
/docker-entrypoint-hooks.d/post-upgrade \
|
||||
|
|
|
@ -141,6 +141,8 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
|
|||
flock 9
|
||||
fi
|
||||
|
||||
run_path pre-initialization
|
||||
|
||||
installed_version="0.0.0.0"
|
||||
if [ -f /var/www/html/version.php ]; then
|
||||
# shellcheck disable=SC2016
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue