...
1#!/bin/bash
2
3# Expections
4# - Exist as /opt/image-build/install.sh
5# - Get called from post-install.sh
6# - Run all scripts in /opt/image-build/installers/
7# - Be run once as part of prod docker build
8# - Be run repeatedly in the builder container
9# See also: installers/README.md
10
11set -e
12
13cd /opt/image-build/installers
14shopt -s nullglob
15for installer in /opt/image-build/installers/*; do
16 if [ -x "$installer" ]; then
17 echo Installing $(basename "$installer")
18 "$installer"
19 fi
20done
View as plain text