-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbootstrap
More file actions
23 lines (21 loc) · 799 Bytes
/
bootstrap
File metadata and controls
23 lines (21 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
{ # prevent execution of partial downloads.
set -e
oops() {
echo "$0:" "$@" >&2
exit 1
}
curl -sL https://raw.githubusercontent.com/flyingcircusio/appenv/master/src/appenv.py -o appenv || oops "failed to download appenv"
chmod +x appenv
ln -sf appenv batou
echo "batou>=2.4.1" >> requirements.txt
sed -e 's!.*batou_ext.*!batou_ext @ https://github.com/flyingcircusio/batou_ext/archive/1e95cbd216d9b4891a0c9301b195de86e430fb0d.zip#sha256=4242d65a4cb0721812a308d2cfa87d647ba78f3e03ae4d189f9d2ac78157df93!' requirements.txt > requirements.txt.new
mv requirements.txt.new requirements.txt
./appenv update-lockfile
./batou migrate --bootstrap
./batou --help
if [ -d ".git" ]; then
echo '.appenv' >> .gitignore
git add .gitignore requirements.txt requirements.lock batou appenv
fi
}