Nenhuma Descrição

autoconfig.sh 784B

1234567891011121314
  1. #!/usr/bin/env sh
  2. if ! [ -z $emobility_server_type ] && ! [ -z $emobility_service_type ]
  3. then
  4. [ -z $emobility_install_dir ] && { echo "emobility installation directory env variable not found, exiting"; exit 1; }
  5. [ -z $emobility_landscape ] && { echo "emobility landscape env variable not found, exiting"; exit 1; }
  6. [ -z $emobility_server_type ] && { echo "emobility env server type variable not found, exiting"; exit 1; }
  7. [ -z $emobility_service_type ] && { echo "emobility env service type variable not found, exiting"; exit 1; }
  8. cp $emobility_install_dir/src/assets/configs-docker/$emobility_server_type-$emobility_service_type-$emobility_landscape.json $emobility_install_dir/dist/config.json
  9. else
  10. echo "no emobility env defined, start with default configuration"
  11. fi