-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
34 lines (26 loc) · 952 Bytes
/
Copy pathrun.sh
File metadata and controls
34 lines (26 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Set the ConfigurationDB settings:
echo "Try to write the configuration file:"
./setConfiguration.sh
# Configure the customerDB and loggingDB:
echo "Try to configure the customerDB and loggingDB:"
./configureCustomerDB.sh
# Try to upload the static data:
echo "Try to upload the static files in to the database:"
./uploadStaticData.sh
# Try to start the app:
./Re4EEE
OUT=$?
if [ $OUT -eq 1 ];then
echo "Error while connecting to the configuration database. Is the dbHost parameter (${dbHost}) correct?"
elif [ $OUT -eq 2 ]; then
echo "Cannot connect to the customer database: Reconfigure the configuration database now..."
# Configure the customerDB and loggingDB:
echo "Try to configure the customerDB and loggingDB:"
./configureCustomerDB.sh
# Try to upload the static data again:
echo "Try to upload the static files in to the database:"
./uploadStaticData.sh
# Start the app:
./Re4EEE
fi