Add pre_ and post_update_hook doc (#284)
* Add pre_ and post_update_hook doc * Add hint for hook to update page * Update u_e-update-hooks.md Co-authored-by: André Peters <andre.peters@debinux.de> Co-authored-by: Patrik Kernstock <patrik@kernstock.net>
Dieser Commit ist enthalten in:
Ursprung
8a66d36c7c
Commit
32dcb9a0b6
3 geänderte Dateien mit 27 neuen und 12 gelöschten Zeilen
|
@ -66,6 +66,10 @@ docker-compose pull
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Hooks
|
||||||
|
|
||||||
|
You can hook into the update mechanism by adding scripts called `pre_commit_hook.sh` and `post_commit_hook.sh` to your mailcows root directory. See [this](./u_e-update-hooks.md) for more details.
|
||||||
|
|
||||||
## Footnotes
|
## Footnotes
|
||||||
|
|
||||||
- There is no release cycle regarding updates.
|
- There is no release cycle regarding updates.
|
||||||
|
|
10
docs/u_e-update-hooks.md
Normale Datei
10
docs/u_e-update-hooks.md
Normale Datei
|
@ -0,0 +1,10 @@
|
||||||
|
It is possible to add pre- and post-update-hooks to the `update.sh` script that upgrades your whole mailcow installation.
|
||||||
|
|
||||||
|
To do so, just add the corresponding bash script into your mailcows root directory:
|
||||||
|
|
||||||
|
* `pre_update_hook.sh` for commands that should run before the update
|
||||||
|
* `post_uddate_hook.sh` for commands that should run after the update is completed
|
||||||
|
|
||||||
|
Keep in mind that `pre_update_hook.sh` runs every time you call `update.sh` and `post_update_hook.sh` will only run if the update was successful and the script doesn't have to be re-run.
|
||||||
|
|
||||||
|
The scripts will be run by bash, an interpreter (e.g. `#!/bin/bash`) as well as an execute permission flag ("+x") are not required.
|
25
mkdocs.yml
25
mkdocs.yml
|
@ -1,6 +1,6 @@
|
||||||
site_name: 'mailcow: dockerized documentation'
|
site_name: "mailcow: dockerized documentation"
|
||||||
site_url: https://mailcow.github.io/mailcow-dockerized-docs/
|
site_url: https://mailcow.github.io/mailcow-dockerized-docs/
|
||||||
copyright: 'Copyright © 2021 AndrĂ© Peters'
|
copyright: "Copyright © 2021 AndrĂ© Peters"
|
||||||
repo_name: mailcow/mailcow-dockerized
|
repo_name: mailcow/mailcow-dockerized
|
||||||
repo_url: https://github.com/mailcow/mailcow-dockerized
|
repo_url: https://github.com/mailcow/mailcow-dockerized
|
||||||
edit_uri: ../mailcow-dockerized-docs/edit/master/docs/
|
edit_uri: ../mailcow-dockerized-docs/edit/master/docs/
|
||||||
|
@ -46,7 +46,7 @@ nav:
|
||||||
- 'Password hashing': 'model-passwd.md'
|
- 'Password hashing': 'model-passwd.md'
|
||||||
- 'Sender and receiver model': 'model-sender_rcv.md'
|
- 'Sender and receiver model': 'model-sender_rcv.md'
|
||||||
- 'General Troubleshooting':
|
- 'General Troubleshooting':
|
||||||
- 'Introduction': debug.md
|
- 'Introduction': 'debug.md'
|
||||||
- 'Logs': 'debug-logs.md'
|
- 'Logs': 'debug-logs.md'
|
||||||
- 'Attach a Container': 'debug-attach_service.md'
|
- 'Attach a Container': 'debug-attach_service.md'
|
||||||
- 'Reset Passwords (incl. SQL)': 'debug-reset_pw.md'
|
- 'Reset Passwords (incl. SQL)': 'debug-reset_pw.md'
|
||||||
|
@ -106,6 +106,7 @@ nav:
|
||||||
- 'Autodiscover / Autoconfig': 'u_e-autodiscover_config.md'
|
- 'Autodiscover / Autoconfig': 'u_e-autodiscover_config.md'
|
||||||
- 'Redirect HTTP to HTTPS': 'u_e-80_to_443.md'
|
- 'Redirect HTTP to HTTPS': 'u_e-80_to_443.md'
|
||||||
- 'Re-enable TLS 1.0 and TLS 1.1': 'u_e-reeanble-weak-protocols.md'
|
- 'Re-enable TLS 1.0 and TLS 1.1': 'u_e-reeanble-weak-protocols.md'
|
||||||
|
- "Run scripts before and after updates": "u_e-update-hooks.md"
|
||||||
- 'Client Configuration':
|
- 'Client Configuration':
|
||||||
- 'Overview': 'client.md'
|
- 'Overview': 'client.md'
|
||||||
- 'Android': 'client/client-android.md'
|
- 'Android': 'client/client-android.md'
|
||||||
|
@ -128,20 +129,20 @@ nav:
|
||||||
- 'Roundcube': 'third_party-roundcube.md'
|
- 'Roundcube': 'third_party-roundcube.md'
|
||||||
- 'SOGo Connector for Thunderbird': 'third_party-thunderbird.md'
|
- 'SOGo Connector for Thunderbird': 'third_party-thunderbird.md'
|
||||||
icon:
|
icon:
|
||||||
logo: 'images/logo.svg'
|
logo: "images/logo.svg"
|
||||||
extra:
|
extra:
|
||||||
palette:
|
palette:
|
||||||
primary: 'indigo'
|
primary: "indigo"
|
||||||
accent: 'orange'
|
accent: "orange"
|
||||||
social:
|
social:
|
||||||
- icon: fontawesome/solid/globe-americas
|
- icon: fontawesome/solid/globe-americas
|
||||||
link: https://mailcow.email
|
link: https://mailcow.email
|
||||||
- icon: fontawesome/brands/github-alt
|
- icon: fontawesome/brands/github-alt
|
||||||
link: https://github.com/mailcow
|
link: https://github.com/mailcow
|
||||||
extra_css: [extra.css]
|
extra_css: [ extra.css ]
|
||||||
extra_javascript: [clients.js]
|
extra_javascript: [ clients.js ]
|
||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
- redirects:
|
- redirects:
|
||||||
redirect_maps:
|
redirect_maps:
|
||||||
'u_e-mailpiler-integration.md': 'third_party-mailpiler_integration.md'
|
'u_e-mailpiler-integration.md': 'third_party-mailpiler_integration.md'
|
||||||
|
|
Laden …
In neuem Issue referenzieren