To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / deploy / any / run-provisioning.sh @ 1602:b22e234c3c7b
History | View | Annotate | Download (430 Bytes)
| 1 |
#!/bin/bash |
|---|---|
| 2 |
|
| 3 |
mydir=$(dirname "$0") |
| 4 |
|
| 5 |
if [ "$mydir" != "/code-to-deploy/deploy/any" ]; then |
| 6 |
echo "ERROR: Expected repository to be at /code-to-deploy prior to provisioning" |
| 7 |
exit 2 |
| 8 |
fi |
| 9 |
|
| 10 |
. "$mydir"/../prepare.sh |
| 11 |
|
| 12 |
for f in "$mydir"/../provision.d/[0-9]*.sh ; do |
| 13 |
case "$f" in |
| 14 |
*~) ;; |
| 15 |
*) echo "Running provisioning script: $f" |
| 16 |
/bin/bash "$f";; |
| 17 |
esac |
| 18 |
done |
| 19 |
|
| 20 |
echo "All provisioning scripts complete" |