Ein für Shopware 6 vorbereitet Systemmanagment.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
472 B

  1. #!/bin/bash
  2. ### DO NOT EDIT THIS FILE
  3. source "$(dirname "${BASH_SOURCE[0]}")/../includes/includes.sh"
  4. app_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." &> /dev/null && pwd)
  5. source "$app_dir/etc/config.sh"
  6. env=$(getArgument $1 "Usage: switch_local_env.sh [live|stage]" "live stage")
  7. echoMainTitle "Switching local system to $env"
  8. echoFinal "... local environment switched"
  9. echo "Running postscript ..."
  10. postScript "$app_dir/bin/postscripts/switch_local_env.sh"