diff options
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 |