startup.sh 288 B

123456789101112
  1. #!/bin/bash -e
  2. FIRST_START_DONE="${CONTAINER_STATE_DIR}/nginx-first-start-done"
  3. # container first start
  4. if [ ! -e "$FIRST_START_DONE" ]; then
  5. echo ${WHO_AM_I} >> /var/lib/nginx/html/index.html
  6. touch $FIRST_START_DONE
  7. fi
  8. echo "The secret is: $FIRST_START_SETUP_ONLY_SECRET"
  9. exit 0