mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-04-22 16:47:26 -05:00
Remove firstrun logic because it is handled in the main setup script
This commit is contained in:
parent
7400e68bff
commit
01223f5f9a
|
|
@ -33,7 +33,6 @@ cd "$git_base/environment"
|
|||
|
||||
info "Setting up local environment variables..."
|
||||
|
||||
firstrun=true
|
||||
if ls ./*.local.env 1>/dev/null 2>&1; then
|
||||
warning "Local environment files already exist. They will be overwritten if you continue."
|
||||
printf "Continue? [y/N] "
|
||||
|
|
@ -45,7 +44,6 @@ if ls ./*.local.env 1>/dev/null 2>&1; then
|
|||
|
||||
docker compose down
|
||||
rm ./*.local.env
|
||||
firstrun=false
|
||||
fi
|
||||
|
||||
# Generate an AES-256-CBC key for account server tokens
|
||||
|
|
@ -149,10 +147,9 @@ EOF
|
|||
success "Successfully set up environment."
|
||||
|
||||
# Some things need to be updated with the new environment variables and secrets,
|
||||
# but only if this isn't the first run and the setup script isn't in progress.
|
||||
# The MongoDB container replica set won't be configured during initial setup,
|
||||
# and the scripts will fail.
|
||||
if [ "$firstrun" = false ] && [ -z "${PRETENDO_SETUP_IN_PROGRESS+x}" ]; then
|
||||
# but only if the setup script isn't in progress. The MongoDB container replica
|
||||
# set won't be configured during initial setup, and the scripts will fail.
|
||||
if [ -z "${PRETENDO_SETUP_IN_PROGRESS+x}" ]; then
|
||||
info "Running necessary container update scripts..."
|
||||
"$git_base"/scripts/update-postgres-password.sh
|
||||
"$git_base"/scripts/update-account-servers-database.sh
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user