docbrown/scripts/entrypoint.sh
Joe Doss 4e1fc4755b
Export RELEASE_FOOTPRINT on container start. (#9987)
RELEASE_FOOTPRINT will be set to the output of date -u +'%Y-%m-%dT%H:%M:%SZ'
(2020-08-25T02:02:21Z for example) which will fix https://github.com/forem/forem/pull/9904

This will be reset to a new date and time string every time the container starts.
2020-08-25 11:06:53 -04:00

14 lines
251 B
Bash
Executable file

#!/usr/bin/env bash
set -e
if [ -f tmp/pids/server.pid ]; then
rm -f tmp/pids/server.pid
fi
export RELEASE_FOOTPRINT=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo "Running rake app_initializer:setup..."
bundle exec rake app_initializer:setup
exec "$@"