File size: 297 Bytes
a5e0646
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
set -e

if [ -z "$DOWN_LINK" ]; then
    echo "ERROR: DOWN_LINK is not set"
    exit 1
fi

echo "Downloading source from $DOWN_LINK ..."
curl -fsSL "$DOWN_LINK" -o /tmp/source.zip
unzip -o /tmp/source.zip -d /app
rm /tmp/source.zip

echo "Starting application..."
exec python oauth.py