Merge dependabot/npm_and_yarn/ui/web/types/node-20.8.10 into combined-prs-branch
[e-mobility-charging-stations-simulator.git] / docker / autoconfig.sh
CommitLineData
7dde0b73
JB
1#!/usr/bin/env sh
2
3if ! [ -z $emobility_server_type ] && ! [ -z $emobility_service_type ]
4then
5 [ -z $emobility_install_dir ] && { echo "emobility installation directory env variable not found, exiting"; exit 1; }
6 [ -z $emobility_landscape ] && { echo "emobility landscape env variable not found, exiting"; exit 1; }
7 [ -z $emobility_server_type ] && { echo "emobility env server type variable not found, exiting"; exit 1; }
8 [ -z $emobility_service_type ] && { echo "emobility env service type variable not found, exiting"; exit 1; }
9
b79579e2 10 cp $emobility_install_dir/dist/assets/configs-aws/$emobility_server_type-$emobility_service_type-$emobility_landscape.json $emobility_install_dir/dist/assets/config.json
e302df1d 11 cp $emobility_install_dir/dist/assets/configs-aws/$emobility_server_type-$emobility_service_type-$emobility_landscape-idtags.json $emobility_install_dir/dist/assets/idtags.json
7dde0b73
JB
12else
13 echo "no emobility env defined, start with default configuration"
14fi