mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-19 10:37:01 +00:00
- Change to default ports (less surprising) - Drop `/con/` volume naming, never caught on
24 lines
492 B
Bash
Executable File
24 lines
492 B
Bash
Executable File
#!/bin/sh
|
|
# start-inbucket.sh
|
|
# description: start inbucket (runs within a docker container)
|
|
|
|
CONF_SOURCE="$INBUCKET_HOME/defaults"
|
|
CONF_TARGET="/config"
|
|
|
|
set -eo pipefail
|
|
|
|
install_default_config() {
|
|
local file="$1"
|
|
local source="$CONF_SOURCE/$file"
|
|
local target="$CONF_TARGET/$file"
|
|
|
|
if [ ! -e "$target" ]; then
|
|
echo "Installing default $file to $CONF_TARGET"
|
|
install "$source" "$target"
|
|
fi
|
|
}
|
|
|
|
install_default_config "greeting.html"
|
|
|
|
exec "$INBUCKET_HOME/bin/inbucket" $*
|