stack-orchestrator/app/data/container-build/cerc-test-container/run.sh

17 lines
411 B
Bash
Raw Normal View History

#!/bin/sh
# Test if the container's filesystem is old (run previously) or new
EXISTSFILENAME=/var/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
2023-01-24 05:09:56 +00:00
# Run nginx which will block here forever
2023-01-24 05:11:24 +00:00
/usr/sbin/nginx -g "daemon off;"