summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall8
1 files changed, 8 insertions, 0 deletions
diff --git a/install b/install
index 69aa1bf..45dabd4 100755
--- a/install
+++ b/install
@@ -28,8 +28,16 @@ DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+MACHINE_PROFILE_BIN="machine_profiles"
+
cd "${BASEDIR}"
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${DOTBOT_DIR}"
+echo "Installing global configuration"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
+
+for profile in $(${BASEDIR}/${MACHINE_PROFILE_BIN}); do
+ echo "Installing configuration for profile " $profile
+ "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${profile}.conf.yaml" "${@}"
+done