feat: Adds bootstrap script that will run all the commands for packages, config, and webapps.

This commit is contained in:
2025-09-28 19:42:59 -04:00
parent eddb346e30
commit edc3e9c74e
3 changed files with 31 additions and 7 deletions

28
bootstrap Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
# Bootstraps a new machine, installing configuration, packages, and webapps.
#
if [ -z "$DEV_ENV" ]; then
echo "env var DEV_ENV needs to be present"
exit 1
fi
# if i just did DEV_ENV=$(pwd) ./run then this is needed for the rest of the
# scripts
export DEV_ENV="$DEV_ENV"
args=""
while [[ $# -gt 0 ]]; do
if [[ "$1" =~ dry ]]; then
args="--dry-run"
fi
done
echo "Args to bootstrap scripts: $args"
echo "Installing packages may require your password multiple times."
echo "Running packages" && $DEV_ENV/run "$args"
echo "Installing configuration" && $DEV_ENV/dev-env "$args"
echo "Installing webapps" && $DEV_ENV/webapp "$args"