mirror of
https://github.com/nextcloud/docker.git
synced 2025-05-03 07:30:53 +02:00
Add ability to force reinitialization by putting a marker file in the tmp folder
We have a custom image where we'd like to recopy all of nextcloud's source code again when we update some internal thing without a change in Nextcloud's version. The newly added pre-initialization hook can be used to determine this and force a rerun. Signed-off-by: Stephan Brunner <s.brunner@stephan-brunner.net>
This commit is contained in:
parent
5bbbde3734
commit
d6b4877b36
11 changed files with 169 additions and 9 deletions
10
README.md
10
README.md
|
@ -393,6 +393,16 @@ To use the hooks triggered by the `entrypoint` script, either
|
|||
...
|
||||
```
|
||||
|
||||
## Forcing an upgrade run
|
||||
|
||||
Sometimes you need to force an explicit upgrade run even when the bundled Nextcloud version did not change.
|
||||
An example would be when you have custom apps bundled and you want to update those.
|
||||
|
||||
To do this, you can simply create a file `/tmp/nextcloud-force-initialization` before the need for an upgrade is determined.
|
||||
The content is irrelevant.
|
||||
You can either create this file before starting the container, or you can use the `pre-initialization` hook to create it.
|
||||
After the update has successfully run, the file is removed automatically.
|
||||
|
||||
# Running this image with `docker compose`
|
||||
The easiest way to get a fully featured and functional setup is using a `compose.yaml` file. There are too many different possibilities to setup your system, so here are only some examples of what you have to look for.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue