David Boreham
c76195c491
* Auto-create bind mount directories inside the deployment dir * Fix deploy test
20 lines
475 B
Bash
Executable File
20 lines
475 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|
set -x
|
|
fi
|
|
# Test if the container's filesystem is old (run previously) or new
|
|
EXISTSFILENAME=/data/exists
|
|
echo "Test container starting"
|
|
if [[ -f "$EXISTSFILENAME" ]];
|
|
then
|
|
TIMESTAMP=`cat $EXISTSFILENAME`
|
|
echo "Filesystem is old, created: $TIMESTAMP"
|
|
else
|
|
echo "Filesystem is fresh"
|
|
echo `date` > $EXISTSFILENAME
|
|
fi
|
|
|
|
# Run nginx which will block here forever
|
|
/usr/sbin/nginx -g "daemon off;"
|