#!/bin/bash

containerstart=`stat -c %Z /proc/1`
curtime=`date +%s`
if [[ $(($containerstart-$curtime)) -le "180" ]]; then
    echo "0"
    exit 0
fi

curl -f 127.0.0.1:8080/login || exit 1