Mercurial > hg > soundsoftware-site
view deploy/any/run-provisioning.sh @ 1619:ae767bbd4cf3 live
Reminder about crontab email
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 10:53:52 +0000 |
parents | 18643ab36008 |
children |
line wrap: on
line source
#!/bin/bash mydir=$(dirname "$0") case "$mydir" in /*) ;; *) mydir=$(echo "$(pwd)/$mydir" | sed 's,/\./,/,g') esac if [ "$mydir" != "/code-to-deploy/deploy/any" ]; then echo "ERROR: Expected repository to be at /code-to-deploy prior to provisioning" echo " (My directory is $mydir, expected /code-to-deploy/deploy/any)" exit 2 fi set -e . "$mydir"/prepare.sh for f in "$mydir"/../provision.d/[0-9]*.sh ; do case "$f" in *~) ;; *) echo "Running provisioning script: $f" /bin/bash "$f" </dev/null ;; # close stdin to avoid interactivity esac done echo "All provisioning scripts complete"