1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-22 03:57:02 +00:00

Rollback #153 as it breaks storage volumes, closes #27 (#161)

Keeping tzdata pkg
This commit is contained in:
James Hillyerd
2020-06-28 11:00:51 -07:00
committed by GitHub
parent 2e0b7cc097
commit 001e9fec58
3 changed files with 25 additions and 32 deletions

View File

@@ -3,7 +3,22 @@
# description: start inbucket (runs within a docker container)
INBUCKET_HOME="/opt/inbucket"
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" $*