X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=example-apps%2FROBO%2Fretail_app%2Fconfigs%2Fstart.sh;h=23796c68e4fcb13caa64bac6152175ba9e8d7f84;hb=8be0e289aa30f9832b916f14d8821c9c9fe3b62e;hp=fd38b712865fd5def6c78d54f64aa103af982957;hpb=19a4ba83ae8dcec00891c451418ff691c35eab93;p=ealt-edge.git diff --git a/example-apps/ROBO/retail_app/configs/start.sh b/example-apps/ROBO/retail_app/configs/start.sh index fd38b71..23796c6 100644 --- a/example-apps/ROBO/retail_app/configs/start.sh +++ b/example-apps/ROBO/retail_app/configs/start.sh @@ -41,66 +41,7 @@ validate_name() { return 0 } -# validates whether file exist -validate_file_exists() { - file_path="$1" - - # checks variable is unset - if [ -z "$file_path" ]; then - echo "file path variable is not set" - return 1 - fi - - # checks if file exists - if [ ! -f "$file_path" ]; then - echo "file does not exist" - return 1 - fi - - return 0 -} - -validate_ip "$LISTEN_IP" -valid_listen_ip="$?" -if [ ! "$valid_listen_ip" -eq "0" ]; then - echo "invalid ip address for listen ip" - exit 1 -fi - -if [ ! -z "$SERVER_NAME" ]; then - validate_name "$SERVER_NAME" - valid_name="$?" - if [ ! "$valid_name" -eq "0" ]; then - echo "invalid ssl server name" - exit 1 - fi -fi - -# ssl parameters validation -validate_file_exists "/usr/app/ssl/server_tls.crt" -valid_ssl_server_cert="$?" -if [ ! "$valid_ssl_server_cert" -eq "0" ]; then - echo "invalid ssl server certificate" - exit 1 -fi - -# ssl parameters validation -validate_file_exists "/usr/app/ssl/server_tls.key" -valid_ssl_server_key="$?" -if [ ! "$valid_ssl_server_key" -eq "0" ]; then - echo "invalid ssl server key" - exit 1 -fi - -# ssl parameters validation -validate_file_exists "/usr/app/ssl/ca.crt" -valid_ssl_ca_crt="$?" -if [ ! "$valid_ssl_ca_crt" -eq "0" ]; then - echo "invalid ssl ca cert" - exit 1 -fi - echo "Running Retail App" umask 0027 cd /usr/app || exit -python run.py \ No newline at end of file +python -u run.py \ No newline at end of file