summaryrefslogtreecommitdiffstats
path: root/adei/openshift-entrypoint.sh
blob: b4fc4f45523276bf68f6e82cccc970459c02e589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

while [ ! -f /adei/cfg/.ready ]; do
    echo "Waiting for ADEI intialization..."
    sleep 5
done

while [ ! -f "$1" ]; do
    echo "The script $1 is not populated yet. Waiting...."
    sleep 1
done

echo "Running: $@"
exec /bin/bash "$@"