Commit 7a3c0718873ae15cbcf9cebcec4b990e653ff86b
1 parent
c1077feb
Exists in
master
and in
90 other branches
vagrant.sh: port to centos
centos' run-parts is not close to Debian's at all
Showing
1 changed file
with
8 additions
and
3 deletions
Show diff stats
vagrant.sh
| ... | ... | @@ -3,11 +3,16 @@ |
| 3 | 3 | set -e |
| 4 | 4 | |
| 5 | 5 | if [ -x /usr/bin/apt-get ]; then |
| 6 | - regex='debian|generic' | |
| 6 | + os='debian' | |
| 7 | 7 | fi |
| 8 | 8 | |
| 9 | 9 | if [ -x /usr/bin/yum ]; then |
| 10 | - regex='centos|generic' | |
| 10 | + os='centos' | |
| 11 | 11 | fi |
| 12 | 12 | |
| 13 | -run-parts --exit-on-error --regex="$regex" /vagrant/vagrant.d | |
| 13 | +for script in $(find /vagrant/vagrant.d -name '*-generic' -or -name "*-$os" | sort); do | |
| 14 | + ( | |
| 15 | + set -x | |
| 16 | + $script | |
| 17 | + ) | |
| 18 | +done | ... | ... |