From 38509f1fbad27de70eef1e81eaa2c5084765ca8f Mon Sep 17 00:00:00 2001 From: Michael DÜrre Date: Thu, 27 Jan 2022 13:43:37 +0100 Subject: improve sdnc-web for external apps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add package manager for more flexibility Issue-ID: SDNC-1658 Signed-off-by: Michael DÜrre Change-Id: I30f4aaa24cf05fce212282b06d5e08437dbcfa8b Signed-off-by: Michael DÜrre Former-commit-id: f41f011ff2e18befd77dd63ab828ea14aafac2a7 --- .../sdnc-web/src/main/scripts/configure.sh | 106 --------------------- 1 file changed, 106 deletions(-) delete mode 100644 installation/sdnc-web/src/main/scripts/configure.sh (limited to 'installation/sdnc-web/src/main/scripts/configure.sh') diff --git a/installation/sdnc-web/src/main/scripts/configure.sh b/installation/sdnc-web/src/main/scripts/configure.sh deleted file mode 100644 index a257e6e1..00000000 --- a/installation/sdnc-web/src/main/scripts/configure.sh +++ /dev/null @@ -1,106 +0,0 @@ -#!/bin/bash - -### -# ============LICENSE_START======================================================= -# ONAP : ccsdk distribution web -# ================================================================================ -# Copyright (C) 2020 highstreet technologies GmbH 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========================================================= -### - -# Comment listening on 8080 in nginx.conf as we don't want nginx to listen on any port other than SDNR -sed -i 's/listen/\#listen/g' /opt/bitnami/nginx/conf/nginx.conf - -update_index_html() { - - # Backup the index.html file - cp /opt/bitnami/nginx/html/odlux/index.html /opt/bitnami/nginx/html/odlux/index.html.backup - #default values - ODLUX_AUTH_METHOD="basic" - ENABLE_ODLUX_RBAC=${ENABLE_ODLUX_RBAC:-false} - - if [ "$ENABLE_OAUTH" == "true" ]; then - ODLUX_AUTH_METHOD="oauth" - fi - echo "authentication is $ODLUX_AUTH_METHOD" - echo "rbac access is enabled: $ENABLE_ODLUX_RBAC" - ODLUX_CONFIG='{"authentication":"'$ODLUX_AUTH_METHOD'","enablePolicy":'$ENABLE_ODLUX_RBAC'}' -# sed -z 's/