diff options
Diffstat (limited to 'admportal/shell')
-rwxr-xr-x | admportal/shell/getAdmPortalProp.py | 13 | ||||
-rwxr-xr-x | admportal/shell/start.sh | 11 | ||||
-rwxr-xr-x | admportal/shell/start_netdb.sh | 12 | ||||
-rwxr-xr-x | admportal/shell/start_portal.sh | 33 | ||||
-rwxr-xr-x | admportal/shell/startssl.sh | 28 | ||||
-rw-r--r-- | admportal/shell/stop.sh | 2 | ||||
-rwxr-xr-x | admportal/shell/stopssl.sh | 13 | ||||
-rw-r--r-- | admportal/shell/svclogic.sh | 32 | ||||
-rwxr-xr-x | admportal/shell/www | 43 |
9 files changed, 0 insertions, 187 deletions
diff --git a/admportal/shell/getAdmPortalProp.py b/admportal/shell/getAdmPortalProp.py deleted file mode 100755 index 2e0ea797..00000000 --- a/admportal/shell/getAdmPortalProp.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/python - -import json -import sys -import os - -propfile = os.getenv('SDNC_CONFIG_DIR') + '/admportal.json' - -from pprint import pprint - -with open(propfile) as data_file: - data = json.load(data_file) -pprint( str(data[sys.argv[1]])) diff --git a/admportal/shell/start.sh b/admportal/shell/start.sh deleted file mode 100755 index d8cb0fcd..00000000 --- a/admportal/shell/start.sh +++ /dev/null @@ -1,11 +0,0 @@ -#. ./set-http-env.sh -#cd ../bin -#cp ../config/config.json.http ../config/config.json -. /etc/attappl.env -. ${PROJECT_HOME}/etc/default.env - -MAIN_MENU=`python printMainMenu.py | sed -e 's|['\'']||g'` -export MAIN_MENU - -cd .. -pm2 startOrRestart process.http.json diff --git a/admportal/shell/start_netdb.sh b/admportal/shell/start_netdb.sh deleted file mode 100755 index 4a3d75ac..00000000 --- a/admportal/shell/start_netdb.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -. /etc/attappl.env -. ${PROJECT_HOME}/etc/default.env -. ${PROJECT_HOME}/siteconfig/siteconf.info - -# only run on primary adm vm -# ${Rank} comes from siteconf.info -if [ ${Rank} == '1' ]; then - cd /opt/admportal/server - node ./netdb_updater.js -t ${1} -d ${2} >/dev/null 2>&1 -fi diff --git a/admportal/shell/start_portal.sh b/admportal/shell/start_portal.sh deleted file mode 100755 index 36716f47..00000000 --- a/admportal/shell/start_portal.sh +++ /dev/null @@ -1,33 +0,0 @@ -#. ./set-https-env.sh -#cd ../bin -#cp ../config/config.json.https ../config/config.json -export PROJECT_HOME=/opt/onap/sdnc -export PROJECT_RUNTIME_BASE=/opt/onap/sdnc -#export JAVA_HOME=/usr/lib/jvm/java-7-oracle -export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 -export SSL_ENABLED=false -export SDNC_CONFIG_DIR=${PROJECT_HOME}/data/properties -export NODE_ENV=production -export CLASSPATH=$PROJECT_HOME/admportal/lib:$CLASSPATH - -PATH=${PATH}:${JAVA_HOME}/bin - -#. ${PROJECT_HOME}/etc/default.env - -MAIN_MENU=`python $PROJECT_HOME/admportal/shell/getAdmPortalProp.py MainMenu | sed -e 's|['\'']||g'` -export MAIN_MENU -SSL_ENABLED=`python $PROJECT_HOME/admportal/shell/getAdmPortalProp.py sslEnabled | sed -e 's|['\'']||g'` -export SSL_ENABLED - -if [ ! -d /opt/onap/sdnc/admportal/node_modules ]; then - echo "ERROR: missing node modules: /opt/onap/sdnc/admportal/node_modules" - exit 1 -fi - -cd /opt/onap/sdnc/admportal -exec node shell/www -#if [ "true" == "${SSL_ENABLED}" ]; then - #pm2 startOrRestart process.https.json -#else - #pm2 startOrRestart process.http.json -#fi diff --git a/admportal/shell/startssl.sh b/admportal/shell/startssl.sh deleted file mode 100755 index a56570e3..00000000 --- a/admportal/shell/startssl.sh +++ /dev/null @@ -1,28 +0,0 @@ -#. ./set-https-env.sh -#cd ../bin -#cp ../config/config.json.https ../config/config.json -export PROJECT_HOME=/opt/openecomp/sdnc -export PROJECT_RUNTIME_BASE=/opt/openecomp/sdnc -#export JAVA_HOME=/usr/lib/jvm/java-7-oracle -export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 -export SSL_ENABLED=false -export SDNC_CONFIG_DIR=${PROJECT_HOME}/data/properties -export NODE_ENV=production -export CLASSPATH=$PROJECT_HOME/admportal/lib:$CLASSPATH - -PATH=${PATH}:${JAVA_HOME}/bin - -#. ${PROJECT_HOME}/etc/default.env - -MAIN_MENU=`python $PROJECT_HOME/admportal/shell/getAdmPortalProp.py MainMenu | sed -e 's|['\'']||g'` -export MAIN_MENU -SSL_ENABLED=`python $PROJECT_HOME/admportal/shell/getAdmPortalProp.py sslEnabled | sed -e 's|['\'']||g'` -export SSL_ENABLED - -cd .. -node bin/www -#if [ "true" == "${SSL_ENABLED}" ]; then - #pm2 startOrRestart process.https.json -#else - #pm2 startOrRestart process.http.json -#fi diff --git a/admportal/shell/stop.sh b/admportal/shell/stop.sh deleted file mode 100644 index 404c2fbd..00000000 --- a/admportal/shell/stop.sh +++ /dev/null @@ -1,2 +0,0 @@ -pm2 stop http_admportal -pm2 kill diff --git a/admportal/shell/stopssl.sh b/admportal/shell/stopssl.sh deleted file mode 100755 index a71de61e..00000000 --- a/admportal/shell/stopssl.sh +++ /dev/null @@ -1,13 +0,0 @@ -. /etc/attappl.env -. ${PROJECT_HOME}/etc/default.env - -SSL_ENABLED=`python /opt/admportal/shell/getAdmPortalProp.py sslEnabled | sed -e 's|['\'']||g'` -export SSL_ENABLED - -cd .. -if [ "true" == "${SSL_ENABLED}" ]; then - pm2 stop admportal8443 -else - pm2 stop http_admportal -fi -pm2 kill diff --git a/admportal/shell/svclogic.sh b/admportal/shell/svclogic.sh deleted file mode 100644 index 67ada89e..00000000 --- a/admportal/shell/svclogic.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -### -# ============LICENSE_START======================================================= -# openECOMP : SDN-C -# ================================================================================ -# Copyright (C) 2017 AT&T Intellectual Property. All rights -# reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -### - -BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" -JARDIR=${BASEDIR}/lib - -for jar in $JARDIR/*.jar -do - CLASSPATH=$CLASSPATH:${jar} -done - -java -cp ${CLASSPATH}:${MYSQL_JDBC_DRIVER} org.onap.ccsdk.sli.core.sli.SvcLogicParser $* diff --git a/admportal/shell/www b/admportal/shell/www deleted file mode 100755 index ef5dcae5..00000000 --- a/admportal/shell/www +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env node -var debug = require('debug')('admportal'); -var app = require('../server/app'); -var constants = require('constants'); -var properties = require(process.env.SDNC_CONFIG_DIR + '/admportal.json'); -var out_file = "/opt/onap/sdnc/admportal/logs/http_admportal.log"; -var error_file = "/opt/onap/sdnc/admportal/logs/error_http_admportal.log"; -var cwd = "/opt/onap/sdnc/admportal"; - -var fs = require('fs.extra'); -var https = require('https'); -var http_port = properties.nonSslPort; -var https_port = properties.ConexusNetworkPort; -var cert_pswd = process.env.CERT_PSWD; -var sslCert = properties.ConexusNetwork_sslCert; - -if (typeof http_port != 'undefined' && http_port.length > 0) -{ - app.set('port', http_port ); - var server = app.listen(app.get('port'), function() - { - console.log('Express server listening on port ' + server.address().port); - debug('Express server listening on port ' + server.address().port); - }); -} - -if (typeof https_port != 'undefined' && https_port.length > 0 && sslCert.length > 0) -{ - var sslOptions = { - pfx: fs.readFileSync(sslCert), - passphrase: properties.ConexusNetwork_sslKey, - secureOptions: constants.SSL_OP_NO_TLSv1|constants.SSL_OP_NO_SSLv2|constants.SSL_OP_NO_SSLv3, - ciphers: [ "AES128-GCM-SHA256","!RC4","HIGH","!MD5","!aNULL","!EDH","!3DES" ].join(':'), - honorCipherOrder: true, - requestCert: true, - rejectUnauthorized: false - }; - app.set('port', https_port); - var secureServer = https.createServer(sslOptions,app).listen(app.get('port'), function(){ - console.log('Express server (https) listening on port ' + secureServer.address().port); - debug('Express server (https) listening on port ' + secureServer.address().port); - }); -} |