2017-12-10 18:35:49 +00:00
|
|
|
#!/bin/bash -x
|
2017-12-10 17:06:11 +00:00
|
|
|
|
|
|
|
export APP="$(realpath "$1")"
|
|
|
|
export CACHE="$2"
|
|
|
|
export ENV="$3"
|
|
|
|
export BP="$(realpath "$(dirname "$0")/..")"
|
|
|
|
export PATH="$PATH:$BP/bin"
|
|
|
|
|
2017-12-10 18:40:04 +00:00
|
|
|
if ! test -d "$CACHE"
|
|
|
|
then mkdir "$CACHE"
|
|
|
|
fi
|
|
|
|
|
2017-12-10 17:06:11 +00:00
|
|
|
. "$BP/bin/read_config"
|
|
|
|
|
|
|
|
tar -xvzf "$BP/uml.tar.gz" -C "$APP"
|
|
|
|
|
|
|
|
mkdir "$APP/.profile.d"
|
2017-12-13 18:03:55 +00:00
|
|
|
cp "$BP/bin/read_config" "$APP/.profile.d/uml_read_config.sh"
|
|
|
|
cp "$BP/bin/redirect_PORT" "$APP/.profile.d/uml_redirect_PORT.sh"
|
2017-12-10 17:06:11 +00:00
|
|
|
|
|
|
|
fix_procfile "$APP/Procfile"
|