23 lines
702 B
Bash
23 lines
702 B
Bash
#!/bin/bash
|
|
#
|
|
# Sets up profiles for a simulation run based on a policy file.
|
|
#
|
|
# Usage: ./bin/setup-profiles-from-policy [--preserve]
|
|
# --preserve: Pass --preserve-profiles to not delete existing profiles.
|
|
#
|
|
set -e
|
|
|
|
EXTRA_ARGS=""
|
|
if [[ "$1" == "--preserve" ]]; then
|
|
EXTRA_ARGS="--preserve-profiles"
|
|
fi
|
|
|
|
echo "--- Setting up profiles from default simulation policy ---"
|
|
|
|
# This script now wraps the new 'simulation setup' command.
|
|
# It passes --preserve-profiles if provided, and ensures .env is used.
|
|
bin/ytops-client simulation setup --env-file .env $EXTRA_ARGS
|
|
|
|
echo "--- Profile setup complete. ---"
|
|
echo "You can now run the authentication simulation with: bin/ytops-client simulation auth"
|