generated from SAP/repository-template
-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
autoconfig.sh
executable file
·14 lines (12 loc) · 974 Bytes
/
autoconfig.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh
if ! [ -z $emobility_server_type ] && ! [ -z $emobility_service_type ]
then
[ -z $emobility_install_dir ] && { echo "emobility installation directory env variable not found, exiting"; exit 1; }
[ -z $emobility_landscape ] && { echo "emobility landscape env variable not found, exiting"; exit 1; }
[ -z $emobility_server_type ] && { echo "emobility env server type variable not found, exiting"; exit 1; }
[ -z $emobility_service_type ] && { echo "emobility env service type variable not found, exiting"; exit 1; }
cp $emobility_install_dir/dist/assets/configs-docker/$emobility_server_type-$emobility_service_type-$emobility_landscape.json $emobility_install_dir/dist/assets/config.json
cp $emobility_install_dir/dist/assets/configs-docker/$emobility_server_type-$emobility_service_type-$emobility_landscape-idtags.json $emobility_install_dir/dist/assets/idtags.json
else
echo "no emobility env defined, start with default configuration"
fi