#!/bin/bash

# Error out when any command fails.  For the migration scripts migrating multiple
# databases this ensure migration errors for any database will be seen by Ansible.
set -euo pipefail

cd {{ edxapp_code_dir }}
source {{ edxapp_app_dir }}/edxapp_env

# The default settings set in edxapp_env can be overridden
# using the var $EDX_PLATFORM_SETTINGS_OVERRIDE

if [[ -n "${EDX_PLATFORM_SETTINGS_OVERRIDE:-}" ]]; then
    export EDX_PLATFORM_SETTINGS="$EDX_PLATFORM_SETTINGS_OVERRIDE"
fi
