Skip to content
Snippets Groups Projects
Commit ad2430ef authored by benedikt.kroening's avatar benedikt.kroening
Browse files

Added singlenode flag for easier guard feature script use

parent 3d9809da
No related branches found
No related tags found
Loading
......@@ -50,6 +50,8 @@ Please keep in mind that most of this flags are already provided by the configur
$0 [OPTIONS]
--singlenode This flag combines install, enable, backend, middleware, frontend and the guard admin flag in order to set things up on a singlenode setup
--install The install flag
--enable Enable guard in config and restart the backend several times
--disable Disable (WIP, may not work)
......@@ -110,6 +112,16 @@ case $key in
shift
shift
;;
--singlenode)
echo "Configuring guard for singlenode setup ..."
export INSTALL_GUARD=true
export GUARD_ENABLE=true
export GUARD_MIDDLEWARE=true
export GUARD_BACKEND=true
export GUARD_FRONTEND=true
INSTALL_TYPE=singlenode
shift
;;
# -k|--key)
# value="$2"
# shift
......@@ -168,7 +180,7 @@ if [[ "${GUARD_ENABLE}" = true ]]; then
echo "Adding Guard proxy rules ..."
cp -f ${SCRIPT_DIR}/../config/frontend/conf/89_guard-proxy.dummy ${HTTPD_CONF_PATH}/89_guard-proxy.conf
if [[ "${INSTALL_TYPE}" == *"singlenode"* ]]; then
if [[ "${INSTALL_TYPE}" == *"singlenode"* ]] && [[ "${INSTALL_FRONTEND}" = true ]]; then
# Creating guard config with higher prios for apache config (load order)
${SCRIPT_DIR}/../config/frontend/add-balancer.sh \
--name "oxguard" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment