diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-11-09 11:49:21 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-11-09 11:49:21 +0100 |
commit | c62885a59b5fbe40cf62a629dd2295f1161831e1 (patch) | |
tree | bb393d9fa4fa70d8aa7f10908541018246b81f97 /install | |
parent | dc7b00df4ba7cf2b7d7e20971fb13213b9c96e14 (diff) |
install: support configuration profiles
Diffstat (limited to 'install')
-rwxr-xr-x | install | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |