summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-11-09 11:49:21 +0100
committerAnton Khirnov <anton@khirnov.net>2020-11-09 11:49:21 +0100
commitc62885a59b5fbe40cf62a629dd2295f1161831e1 (patch)
treebb393d9fa4fa70d8aa7f10908541018246b81f97 /install
parentdc7b00df4ba7cf2b7d7e20971fb13213b9c96e14 (diff)
install: support configuration profiles
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