Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ox-installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QA
ox-installer
Commits
c184437d
Commit
c184437d
authored
5 years ago
by
benedikt.kroening
Browse files
Options
Downloads
Patches
Plain Diff
Moved some frontend setup logic
parent
27c57443
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
Issue16 7102
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/init-frontend.sh
+19
-4
19 additions, 4 deletions
config/init-frontend.sh
config/middleware/30_init_singlenode.sh
+0
-55
0 additions, 55 deletions
config/middleware/30_init_singlenode.sh
setup/install-frontend.sh
+2
-8
2 additions, 8 deletions
setup/install-frontend.sh
with
21 additions
and
67 deletions
config/init-frontend.sh
+
19
−
4
View file @
c184437d
...
@@ -35,6 +35,7 @@ show_usage() {
...
@@ -35,6 +35,7 @@ show_usage() {
echo
-n
"
echo
-n
"
$0
[OPTIONS]
$0
[OPTIONS]
--singlenode Creates basic balancers for a singlenode setup (App Suite api only)
"
"
}
}
...
@@ -56,8 +57,10 @@ case $key in
...
@@ -56,8 +57,10 @@ case $key in
set
-x
set
-x
shift
shift
;;
;;
--singlenode
)
INSTALL_TYPE
=
singlenode
shift
;;
# -g|--middleware)
# -g|--middleware)
# INSTALL_MIDDLEWARE=true
# INSTALL_MIDDLEWARE=true
# shift
# shift
...
@@ -85,8 +88,20 @@ esac
...
@@ -85,8 +88,20 @@ esac
done
done
set
--
"
${
POSITIONAL
[@]
}
"
# restore positional parameters
set
--
"
${
POSITIONAL
[@]
}
"
# restore positional parameters
echo
"Copying default config ..."
if
[[
"
${
INSTALL_TYPE
}
"
==
*
"singlenode"
*
]]
;
then
cp
-f
${
SCRIPT_DIR
}
/frontend/conf/
*
.conf
${
HTTPD_CONF_PATH
}
echo
"Configuring frontend for singlenode use with localhost balancers"
${
SCRIPT_DIR
}
/frontend/add-balancer.sh
\
--name
"oxcluster"
\
--balancer
"http://localhost:8009"
\
--route
"
$(
hostname
-s
)
"
\
--priority
20
${
SCRIPT_DIR
}
/frontend/add-balancer.sh
\
--name
"oxcluster_ws"
\
--balancer
"ws://localhost:8009"
\
--route
"
$(
hostname
-s
)
"
\
--priority
20
fi
restartService
${
HTTPD
}
restartService
${
HTTPD
}
This diff is collapsed.
Click to expand it.
config/middleware/30_init_singlenode.sh
deleted
100755 → 0
+
0
−
55
View file @
27c57443
#!/bin/bash
#
# Copyright (C) 2019 OX Software GmbH
#
# This file is part of OX Automation.
#
# OX Automation is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OX Automation is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OX Automation. If not, see <http://www.gnu.org/licenses/>.
#
#
# Authors:
# Benedikt Kroening <benedikt.kroening@open-xchange.com>
#
set
-e
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
-P
)
"
source
${
SCRIPT_DIR
}
/../../lib/common.bash
detectDistribution
if
[[
"
${
INSTALL_TYPE
}
"
==
*
"singlenode"
*
]]
;
then
echo
"Configuring everything for singlenode use with frontend balancers"
echo
"========="
printenv
|
grep
"^INSTALL_"
echo
"========="
sleep
5
# one last singlenode restart before qa init will start
restartService open-xchange
${
SCRIPT_DIR
}
/../frontend/add-balancer.sh
\
--name
"oxcluster"
\
--balancer
"http://localhost:8009"
\
--route
"
$(
hostname
-s
)
"
\
--priority
20
${
SCRIPT_DIR
}
/../frontend/add-balancer.sh
\
--name
"oxcluster_ws"
\
--balancer
"ws://localhost:8009"
\
--route
"
$(
hostname
-s
)
"
\
--priority
20
restartService
${
HTTPD
}
fi
This diff is collapsed.
Click to expand it.
setup/install-frontend.sh
+
2
−
8
View file @
c184437d
...
@@ -33,6 +33,8 @@ checkRootPrivileges
...
@@ -33,6 +33,8 @@ checkRootPrivileges
show_usage
()
{
show_usage
()
{
echo
-n
"
echo
-n
"
$0
[OPTIONS]
$0
[OPTIONS]
--init-singlenode forces init process after frontend installation for singlenode/localhost nodes only
"
"
...
@@ -55,14 +57,6 @@ case $key in
...
@@ -55,14 +57,6 @@ case $key in
set
-x
set
-x
shift
shift
;;
;;
--guard
)
INSTALL_GUARD
=
true
shift
;;
--documents
)
INSTALL_DOCUMENTS
=
true
shift
;;
*
)
# unknown option
*
)
# unknown option
POSITIONAL+
=(
"
$1
"
)
# save it in an array for later
POSITIONAL+
=(
"
$1
"
)
# save it in an array for later
shift
shift
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment