mirror of
https://github.com/roundcube/roundcubemail-docker.git
synced 2026-02-18 21:01:08 +01:00
All executable files present in /entrypoint-tasks/pre-setup/ and /entrypoint-tasks/post-setup/ are run at the beginning or at the end, respectively, of the actual entrypoint-script. Each of the executed files receive the CMD given to the container as their arguments. This allows e.g. to change a plugin's config, or install a technical requirement of a plugin that is to be installed. This feature is not implemented in the images for Roundcube v1.5, since they are not well maintained and will be dropped soon, anyways.
10 lines
234 B
Bash
Executable File
10 lines
234 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# Check that the file, which a pre-setup-script should have created, is present.
|
|
test -f /tmp/something
|
|
|
|
# Leave a marker that can be checked from the outside.
|
|
echo yes > public_html/post_setup_script.txt
|