From d61113b4cd96910f860fc237d840e7941e209f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Douglas=20Mendiz=C3=A1bal?= Date: Fri, 19 Feb 2016 22:08:22 -0600 Subject: [PATCH] Delete deprecated barbican-all script Change-Id: Idaa8d0983f899ce20e5210ed11b259e8851eeb55 --- bin/barbican-all | 56 ------------------------------------------------ 1 file changed, 56 deletions(-) delete mode 100755 bin/barbican-all diff --git a/bin/barbican-all b/bin/barbican-all deleted file mode 100755 index eb2e9ee21..000000000 --- a/bin/barbican-all +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -##### -# WARNING: This script is deprecated now. Please use the barbican.sh script instead. -##### - -# barbican-api - Script run Barbican API app. - -PKG=barbican - -# For local development, set VENV_PYTHON equal to the path to your virtual environment's site-packages location -VENV=${VENV:-.venv} -VENV_HOME=${VENV_HOME:-$PWD} -VENV_PYTHON=$VENV_HOME/$VENV/lib/python2.7/site-packages - -PKG_DIR=/etc/$PKG -CONF_FILE=$PKG_DIR/barbican.conf -POLICY_FILE=$PKG_DIR/policy.json -SIGNING_DIR=$PKG_DIR/cache/ -OPTS='--daemonize /var/log/barbican/uwsgi.log' - -# Configure for a local deployment environment: -if [ ! -f $CONF_FILE ]; -then - echo 'Running locally...' - - PKG_DIR=$PWD/etc/$PKG - CONF_FILE=./etc/$PKG/barbican.conf - PYTHONPATH=$VENV_PYTHON:$PYTHONPATH - OPTS='-H '$VENV_HOME/$VENV' --stats :9314' - - # Copy conf file to home directory so oslo.config can find it - LOCAL_CONF_FILE=~/barbican.conf - if [ ! -f $LOCAL_CONF_FILE ]; - then - cp ./etc/$PKG/barbican.conf ~ - fi -fi - -# TODO: This is breaking deployment...need to analyze. -#if [ ! -f $POLICY_FILE ]; -#then -# LOCAL_POLICY_FILE=./etc/$PKG/policy.json -# mkdir -p $PKG_DIR -# sudo cp $LOCAL_POLICY_FILE POLICY_FILE -#fi -# -#if [ ! -f $SIGNING_DIR ]; -#then -# echo "making "$SIGNING_DIR -# sudo mkdir -p $SIGNING_DIR -#fi - -echo 'Running Barbican uWSGI Emperor '$PKG_DIR/vassals -echo 'Executing uwsgi with these options: '$PKG_DIR/vassals' '$OPTS -uwsgi --master --emperor $PKG_DIR/vassals $OPTS